PoolingHttpClientConnectionManager实现了ConnPoolControl< HttpRoute>,因此我们可以假设我们正在谈论的路由是HttpRoute.
在文档中,它写的是HttpRoute
The route for a request.
HttpRoute的构造函数之一是以下形式:
HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, RouteInfo.TunnelType tunnelled, RouteInfo.LayerType layered)
看看RouteInfo.LayerType,我们看到:
The layering type of a route. Plain routes are established by
connecting or tunnelling. Layered routes are established by layering a
protocol such as TLS/SSL over an existing connection. Protocols can
only be layered over a tunnel to the target, or or over a direct
connection without proxies.
总之,在这种情况下,术语路由应该被理解为网络路由,而不是从您的问题的标记“路由”定义的从URL到控制器的映射.