|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.ConnectionRoute
ice.net.Indirect
This is the base implementation of an ConnectionRoute that
has an indirect connection route to get to the host of the requested
URL.
| Field Summary |
| Fields inherited from class ice.net.ConnectionRoute |
KNOWN_BAD, KNOWN_GOOD, UNTESTED |
| Constructor Summary | |
protected |
Indirect(String host,
int port)
Constructs an Indirect with the specified
host and port. |
| Method Summary | |
protected void |
checkHost(String host)
Convenience method to check the specified host for
validity. |
protected void |
checkPort(int port)
Convenience method to check the specified port for
validity. |
boolean |
equals(Object object)
|
String |
getHost()
Returns the host name of this Indirect. |
int |
getPort()
Returns the port number of this Indirect. |
int |
getStatus()
Returns the status of this Indirect. |
void |
setStatus(int status)
Sets this Indirect |
| Methods inherited from class ice.net.ConnectionRoute |
checkStatus, getRequestedUrl, setRequestedUrl |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Indirect(String host,
int port)
throws IllegalArgumentException
Constructs an Indirect with the specified
host and port.
host - the host name of the Indirect to be created.port - the port number of the Indirect to be
created.
IllegalArgumentException - if one of the following occurs:
host is either
null or empty;
port is either less
than 0 or greater than
65536.
ConnectionRoute.ConnectionRoute()| Method Detail |
public boolean equals(Object object)
equals in class ConnectionRoutepublic final String getHost()
Returns the host name of this Indirect.
Note: this returns the host name of the Indirect
connection route, not the host name of the requested
URL!
ConnectionRoute.getRequestedUrl()public final int getPort()
Returns the port number of this Indirect.
Note: this returns the port number of the Indirect
connection route, not the port number of the requested
URL!
ConnectionRoute.getRequestedUrl()public final int getStatus()
Returns the status of this Indirect.
getStatus in class ConnectionRoutesetStatus(int),
ConnectionRoute.UNTESTED,
ConnectionRoute.KNOWN_GOOD,
ConnectionRoute.KNOWN_BADpublic final void setStatus(int status)
Sets this Indirect's status to the specified
status.
setStatus in class ConnectionRoutestatus - the new status.getStatus(),
ConnectionRoute.UNTESTED,
ConnectionRoute.KNOWN_GOOD,
ConnectionRoute.KNOWN_BAD
protected final void checkHost(String host)
throws IllegalArgumentException
Convenience method to check the specified host for
validity.
The specified host is only valid if all of the following
applies:
null;host.trim().length() != 0.
host - the host name to be checked.
IllegalArgumentException - if the specified host is either
null or empty.
protected final void checkPort(int port)
throws IllegalArgumentException
Convenience method to check the specified port for
validity.
The specified port is only valid if all of the following
applies:
0,65536.
port - the port number to be checked.
IllegalArgumentException - if the specified port is either less than
0 or greater than 65536.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||