org.apache.http.conn.routing.RouteInfo |
Known Indirect Subclasses |
Read-only interface for route information.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
RouteInfo.LayerType | The layering type of a route. | |||||||||
|
RouteInfo.TunnelType | The tunnelling type of a route. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Obtains the number of hops in this route.
|
||||||||||
|
Obtains the target of a hop in this route.
|
||||||||||
|
Obtains the layering type of this route.
|
||||||||||
|
Obtains the local address to connect from.
|
||||||||||
|
Obtains the first proxy host.
|
||||||||||
|
Obtains the target host.
|
||||||||||
|
Obtains the tunnel type of this route.
|
||||||||||
|
Checks whether this route includes a layered protocol.
|
||||||||||
|
Checks whether this route is secure.
|
||||||||||
|
Checks whether this route is tunnelled through a proxy.
|
Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of n proxies has n+1 hops.
Obtains the target of a hop in this route.
The target of the last hop is the
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()
|
---|
Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.
Obtains the local address to connect from.
null
Obtains the first proxy host.
null
if this route is direct
Obtains the target host.
Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.
Checks whether this route includes a layered protocol. In the presence of proxies, only layering over an end-to-end tunnel is considered.
true
if layered,
false
otherwise
Checks whether this route is secure.
true
if secure,
false
otherwise
Checks whether this route is tunnelled through a proxy. If there is a proxy chain, only end-to-end tunnels are considered.
true
if tunnelled end-to-end through at least
one proxy,
false
otherwise