| Modifier and Type | Class and Description |
|---|---|
| public static enum | RouteInfo.LayerType
The layering type of a route. |
| public static enum | RouteInfo.TunnelType
The tunnelling type of a route. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public HttpHost | Returns: the target of the given hopindex of the hop for which to get the target,
0 for first hop)Obtains the target of a hop in this route. |
| public RouteInfo. | |
| public InetAddress | |
| public HttpHost | Returns: the first proxy in the proxy chain, ornull if this route is directObtains the first proxy host. |
| public HttpHost | |
| public RouteInfo. | |
| public boolean | Returns: true if layered,
false otherwiseChecks whether this route includes a layered protocol. |
| public boolean | |
| public boolean | Returns: true if tunnelled end-to-end through at least
one proxy,
false otherwiseChecks whether this route is tunnelled through a proxy. |
| getHopCount | back to summary |
|---|---|
| public int getHopCount() 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.
| |
| getHopTarget | back to summary |
|---|---|
| public HttpHost getHopTarget(int hop) Obtains the target of a hop in this route.
The target of the last hop is the
| |
| getLayerType | back to summary |
|---|---|
| public RouteInfo. Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered. | |
| getLocalAddress | back to summary |
|---|---|
| public InetAddress getLocalAddress() Obtains the local address to connect from.
| |
| getProxyHost | back to summary |
|---|---|
| public HttpHost getProxyHost() Obtains the first proxy host.
| |
| getTargetHost | back to summary |
|---|---|
| public HttpHost getTargetHost() Obtains the target host.
| |
| getTunnelType | back to summary |
|---|---|
| public RouteInfo. Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.
| |
| isLayered | back to summary |
|---|---|
| public boolean isLayered() Checks whether this route includes a layered protocol. In the presence of proxies, only layering over an end-to-end tunnel is considered.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Checks whether this route is secure.
| |
| isTunnelled | back to summary |
|---|---|
| public boolean isTunnelled() Checks whether this route is tunnelled through a proxy. If there is a proxy chain, only end-to-end tunnels are considered.
| |
Layering a protocol over a direct connection makes little sense, since the connection could be established with the new protocol in the first place. But we don't want to exclude that use case.
| Modifier and Type | Field and Description |
|---|---|
| public static final RouteInfo. | |
| public static final RouteInfo. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RouteInfo. | |
| public static RouteInfo. |
| LAYERED | back to summary |
|---|---|
| public static final RouteInfo. | |
| PLAIN | back to summary |
|---|---|
| public static final RouteInfo. | |
| LayerType | back to summary |
|---|---|
| private LayerType() | |
| valueOf | back to summary |
|---|---|
| public static RouteInfo. | |
| values | back to summary |
|---|---|
| public static RouteInfo. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final RouteInfo. | |
| public static final RouteInfo. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RouteInfo. | |
| public static RouteInfo. |
| PLAIN | back to summary |
|---|---|
| public static final RouteInfo. | |
| TUNNELLED | back to summary |
|---|---|
| public static final RouteInfo. | |
| TunnelType | back to summary |
|---|---|
| private TunnelType() | |
| valueOf | back to summary |
|---|---|
| public static RouteInfo. | |
| values | back to summary |
|---|---|
| public static RouteInfo. | |