|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.net.ConnectionRoute
| Field Summary | |
static int |
KNOWN_BAD
Indicates that the status of the ConnectionRoute is known
to be bad. |
static int |
KNOWN_GOOD
Indicates that the status of the ConnectionRoute is known
to be good. |
static int |
UNTESTED
Indicates that the status of the ConnectionRoute is
untested. |
| Constructor Summary | |
protected |
ConnectionRoute()
Constructs an empty ConnectionRoute. |
| Method Summary | |
protected void |
checkStatus(int status)
Convenience method to check the specified status for
validity. |
boolean |
equals(Object object)
|
URL |
getRequestedUrl()
Returns the requested URL of this ConnectionRoute. |
int |
getStatus()
Returns the status of this ConnectionRoute. |
void |
setRequestedUrl(URL requestedUrl)
Sets this ConnectionRoute's requested URL to the
specified requestedUrl. |
void |
setStatus(int status)
Sets this ConnectionRoute |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNTESTED
Indicates that the status of the ConnectionRoute is
untested.
public static final int KNOWN_GOOD
Indicates that the status of the ConnectionRoute is known
to be good. That is, the last time the connection route was tested
successfully.
public static final int KNOWN_BAD
Indicates that the status of the ConnectionRoute is known
to be bad. That is, the last time the connection route was tested
unsuccessfully.
| Constructor Detail |
protected ConnectionRoute()
Constructs an empty ConnectionRoute.
| Method Detail |
public boolean equals(Object object)
public final URL getRequestedUrl()
Returns the requested URL of this ConnectionRoute.
setRequestedUrl(URL)public int getStatus()
Returns the status of this ConnectionRoute.
setStatus(int),
UNTESTED,
KNOWN_GOOD,
KNOWN_BAD
public final void setRequestedUrl(URL requestedUrl)
throws IllegalArgumentException
Sets this ConnectionRoute's requested URL to the
specified requestedUrl.
requestedUrl - the new requested URL.
IllegalArgumentException - if the specified requestedUrl is
null.getRequestedUrl()public void setStatus(int status)
Sets this ConnectionRoute's status to the specified
status.
status - the new status.getStatus(),
UNTESTED,
KNOWN_GOOD,
KNOWN_BAD
protected final void checkStatus(int status)
throws IllegalArgumentException
Convenience method to check the specified status for
validity.
The specified status is only valid if it is one of the
following:
status - the status to be checked.
IllegalArgumentException - if the specified status is not equal to
UNTESTED,
KNOWN_GOOD and
KNOWN_BAD.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||