| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RouteInfo
Read-only interface for route information.
| Nested Class Summary | |
|---|---|
| static class | RouteInfo.LayerTypeThe layering type of a route. | 
| static class | RouteInfo.TunnelTypeThe tunnelling type of a route. | 
| Method Summary | |
|---|---|
|  int | getHopCount()Obtains the number of hops in this route. | 
|  org.apache.http.HttpHost | getHopTarget(int hop)Obtains the target of a hop in this route. | 
|  RouteInfo.LayerType | getLayerType()Obtains the layering type of this route. | 
|  InetAddress | getLocalAddress()Obtains the local address to connect from. | 
|  org.apache.http.HttpHost | getProxyHost()Obtains the first proxy host. | 
|  org.apache.http.HttpHost | getTargetHost()Obtains the target host. | 
|  RouteInfo.TunnelType | getTunnelType()Obtains the tunnel type of this route. | 
|  boolean | isLayered()Checks whether this route includes a layered protocol. | 
|  boolean | isSecure()Checks whether this route is secure. | 
|  boolean | isTunnelled()Checks whether this route is tunnelled through a proxy. | 
| Method Detail | 
|---|
org.apache.http.HttpHost getTargetHost()
InetAddress getLocalAddress()
nullint getHopCount()
org.apache.http.HttpHost getHopTarget(int hop)
target host,
 the target of previous hops is the respective proxy in the chain.
 For a route through exactly one proxy, target of hop 0 is the proxy
 and target of hop 1 is the target host.
hop - index of the hop for which to get the target,
                  0 for first
IllegalArgumentException - if the argument is negative or not less than
  getHopCount()org.apache.http.HttpHost getProxyHost()
null if this route is directRouteInfo.TunnelType getTunnelType()
boolean isTunnelled()
true if tunnelled end-to-end through at least
          one proxy,
          false otherwiseRouteInfo.LayerType getLayerType()
boolean isLayered()
true if layered,
          false otherwiseboolean isSecure()
true if secure,
          false otherwise| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||