Methods Summary |
---|
public boolean | equals(java.lang.Object other)Compares fro equivalence.
if (other.getClass().equals(this.getClass())) {
Hop otherhop = (Hop) other;
return (otherhop.host.equals(this.host) &&
otherhop.port == this.port);
} else return false;
|
public java.lang.String | getHost()Retruns the host string.
return host;
|
public int | getPort()Returns the port.
return port;
|
public java.lang.String | getTransport()Returns the transport string.
return transport;
|
public boolean | isDefaultRoute()Return true if this is a default route (next hop proxy address).
return defaultRoute;
|
public boolean | isExplicitRoute()Return true if this is an explicit route (extacted from a ROUTE
Header).
return explicitRoute;
|
public boolean | isURIRoute()Return true if this is uriRoute. return uriRoute;
|
public void | setDefaultRouteFlag()Set the defaultRouteFlag. defaultRoute = true;
|
public void | setExplicitRouteFlag()Set the explicitRoute flag. explicitRoute = true;
|
public void | setURIRouteFlag()Set the URIRoute flag. uriRoute = true;
|
public java.lang.String | toString()Encodes contents int a string.
return host + ":" + port + "/" + transport;
|