public final class HopImpl extends Object implements Hop, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultRoute |
protected String |
host |
protected int |
port |
protected String |
transport |
protected boolean |
uriRoute |
| Constructor and Description |
|---|
HopImpl(String hostName,
int portNumber,
String trans)
Create new hop given host, port and transport.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
Retruns the host string.
|
int |
getPort()
Returns the port.
|
String |
getTransport()
returns the transport string.
|
boolean |
isURIRoute()
Return true if this is uriRoute
|
void |
setURIRouteFlag()
Set the URIRoute flag.
|
String |
toString()
Debugging println.
|
protected String host
protected int port
protected String transport
protected boolean defaultRoute
protected boolean uriRoute
public String toString()
public String getHost()
public int getPort()
public String getTransport()
getTransport in interface Hoppublic boolean isURIRoute()
public void setURIRouteFlag()
Copyright © 2014. All Rights Reserved.