public interface RouteInfo
| Modifier and Type | Interface and Description |
|---|---|
static class |
RouteInfo.LayerType
路由的分层类型。
|
static class |
RouteInfo.TunnelType
路由的隧道类型。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHopCount()
获取此路由中的跳数。
|
HttpHost |
getHopTarget(int hop)
获得这条路线中的跳跃目标。
|
RouteInfo.LayerType |
getLayerType()
获取此路由的分层类型。
|
InetAddress |
getLocalAddress()
获取要连接的本地地址。
|
HttpHost |
getProxyHost()
获取第一个代理主机。
|
HttpHost |
getTargetHost()
获取目标主机。
|
RouteInfo.TunnelType |
getTunnelType()
获取此路由的隧道类型。
|
boolean |
isLayered()
检查此路由是否包含分层协议。
|
boolean |
isSecure()
检查这条路线是否安全。
|
boolean |
isTunnelled()
检查此路由是否通过代理隧道通过。
|
HttpHost getTargetHost()
InetAddress getLocalAddress()
null
int getHopCount()
HttpHost getHopTarget(int hop)
hop - 获取目标的跳数索引,第一个为0
IllegalArgumentException - 如果参数为负数或不小于
getHopCount()
HttpHost getProxyHost()
null如果此路由是直接的
RouteInfo.TunnelType getTunnelType()
boolean isTunnelled()
true如果通过至少一个代理端到端隧道,
false否则
RouteInfo.LayerType getLayerType()
boolean isLayered()
true如果分层,
false否则
boolean isSecure()
true if secure,
false otherwise
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.