|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.aglet.Ticket
An agent who wants to trip somewhere, he has a ticket to there. A ticket denotes destination of the trip and way to trip.
| Field Summary | |
private java.lang.String |
_file
|
private java.lang.String |
_host
|
private int |
_port
|
private java.lang.String |
_protocol
|
private QoC |
_qoc
|
static java.lang.String |
ATP
SCHEME = Protocol of agent transfer |
private static int |
DEFAULTATPPORTNO
|
private static int |
DEFAULTHTTPPORTNO
|
private static int |
defaultPortNo
|
static java.lang.String |
DEFAULTSCHEME
Scheme Name : default scheme name. |
static java.lang.String |
HTTP
Scheme Name : Hyper Text Transfer Protocol HTTP is defined by World Wide Web Consortium. |
static java.lang.String |
IIOP
Scheme Name : Internet Interoperable Object Reference IIOP is defined by OMG. |
static java.lang.String |
RMI
Scheme Name : Remote Method Invocation |
| Constructor Summary | |
Ticket(java.lang.String host)
Constructor with desitnation address of the trip. |
|
Ticket(java.lang.String destination,
QoC qoc)
Constructor with desitnation address of the trip. |
|
Ticket(java.lang.String host,
QoC qoc,
java.lang.String scheme,
int portNo)
Constructor with desitnation address of the trip, quality of aglet cummunication in the trip and port number of the connection. |
|
Ticket(java.net.URL address)
Constructor with desitnation address of the trip, quality of aglet cummunication in the trip and port number of the connection. |
|
Ticket(java.net.URL address,
QoC qoc)
Constructor with desitnation address of the trip and quality of aglet cummunication in the trip. |
|
| Method Summary | |
static int |
getDefaultPort()
Get default port number for connection. |
java.net.URL |
getDestination()
Get destination to where the aglet wants to trip. |
private java.lang.String |
getDestinationString()
Returns a string representation of the destination. |
java.lang.String |
getFile()
Get specified file. |
java.lang.String |
getHost()
Get specified host. |
int |
getPort()
Get specified port. |
java.lang.String |
getProtocol()
Get specified protocol. |
QoC |
getQoC()
Get quality of aglet communication. |
boolean |
isDefaultPort()
Returns whether prot number is default. |
static void |
main(java.lang.String[] args)
|
private void |
set(java.lang.String address,
QoC qoc)
Set desitnation address of the trip, quality of aglet cummunication in the trip and port number of the connection. |
private void |
set(java.lang.String address,
QoC qoc,
java.lang.String scheme,
int portNo)
Set desitnation address of the trip, quality of aglet cummunication in the trip and port number of the connection. |
private void |
set(java.net.URL address,
QoC qoc)
Set desitnation address of the trip, quality of aglet cummunication in the trip and port number of the connection. |
static void |
setDefaultPort(int portNo)
Set default port number for connection. |
void |
setDestination(java.lang.String urlstr)
Set destination to where the aglet wants to trip. |
void |
setDestination(java.lang.String address,
java.lang.String scheme,
int portNo)
Set destination to where the aglet wants to trip. |
void |
setDestination(java.net.URL destination)
Set destination to where the aglet wants to trip. |
void |
setQoC(QoC qoc)
Set quality of aglet communication. |
java.lang.String |
toString()
Returns a string representation of the ticket. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String ATP
SCHEME = Protocol of agent transferScheme Name : Agent Transfer Protocol.
public static final java.lang.String HTTP
public static final java.lang.String RMI
public static final java.lang.String IIOP
public static final java.lang.String DEFAULTSCHEME
private java.lang.String _protocol
private java.lang.String _host
private java.lang.String _file
private int _port
private QoC _qoc
private static final int DEFAULTATPPORTNO
private static final int DEFAULTHTTPPORTNO
private static int defaultPortNo
| Constructor Detail |
public Ticket(java.lang.String host)
throws java.net.MalformedURLException
host - destination host of the trip
java.net.MalformedURLException
public Ticket(java.lang.String destination,
QoC qoc)
throws java.net.MalformedURLException
qoc - quality of communication for the trip
java.net.MalformedURLExceptionQoC
public Ticket(java.lang.String host,
QoC qoc,
java.lang.String scheme,
int portNo)
throws java.net.MalformedURLException
host - destination host of the tripqoc - quality of communication for the tripscheme - scheme name of communicationportNo - number of the connection
java.net.MalformedURLExceptionQoCpublic Ticket(java.net.URL address)
address - destination of the tripQoC
public Ticket(java.net.URL address,
QoC qoc)
address - destination of the tripqoc - quality of communication for the tripQoC| Method Detail |
public static int getDefaultPort()
public java.net.URL getDestination()
private java.lang.String getDestinationString()
Object.toString()public java.lang.String getFile()
public java.lang.String getHost()
public int getPort()
public java.lang.String getProtocol()
public QoC getQoC()
public boolean isDefaultPort()
public static void main(java.lang.String[] args)
private void set(java.lang.String address,
QoC qoc)
throws java.net.MalformedURLException
address - destination of the tripqoc - quality of communication for the trip
java.net.MalformedURLExceptionQoC
private void set(java.lang.String address,
QoC qoc,
java.lang.String scheme,
int portNo)
throws java.net.MalformedURLException
address - destination of the tripqoc - quality of communication for the tripscheme - scheme name of communicationportNo - number of the connection
java.net.MalformedURLExceptionQoC
private void set(java.net.URL address,
QoC qoc)
address - destination of the tripqoc - quality of communication for the tripQoCpublic static void setDefaultPort(int portNo)
portNo - default port number of the connection
public void setDestination(java.lang.String urlstr)
throws java.net.MalformedURLException
urlstr - destination of the trip
java.net.MalformedURLException
public void setDestination(java.lang.String address,
java.lang.String scheme,
int portNo)
throws java.net.MalformedURLException
address - destination of the tripscheme - scheme name of communicationportNo - number of the connection
java.net.MalformedURLExceptionpublic void setDestination(java.net.URL destination)
destination - destination of the trippublic void setQoC(QoC qoc)
qoc - quality of aglet communication in the tripQoCpublic java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||