|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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 | |
static java.lang.String |
ATP
SCHEME = Protocol of agent transfer |
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. |
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)
|
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
Constructor Detail |
public Ticket(java.lang.String host) throws java.net.MalformedURLException
host
- destination host of the tripjava.net.MalformedURLException
- public Ticket(java.lang.String destination, QoC qoc) throws java.net.MalformedURLException
host
- destination host of the tripqoc
- quality of communication for the tripjava.net.MalformedURLException
- QoC
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 connectionjava.net.MalformedURLException
- QoC
public 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()
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)
public static void setDefaultPort(int portNo)
portNo
- default port number of the connectionpublic void setDestination(java.lang.String urlstr) throws java.net.MalformedURLException
urlstr
- destination of the trippublic 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 connectionjava.net.MalformedURLException
- public void setDestination(java.net.URL destination)
destination
- destination of the trippublic void setQoC(QoC qoc)
qoc
- quality of aglet communication in the tripQoC
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |