Apache HttpRoute - route definition

I use Apache PoolingHttpClientConnectionManagerto create a pool of connections to different services on my network. The documentation says that the connections are united according to the route principle. I don’t quite understand what is meant by a route.

I found another similar question , but the answer is still a bit unclear. If we have two applications on the same server, each of which has several REST api, is each API considered a separate route?

For example, if we have the following:

 http://server1/app1/books
 http://server1/app1/magazines
 http://server1/app2/cars
 http://server1/app2/cars/color/red
 http://server1/app2/cars/color/black/doors/2

Will each of the above be considered as one route?

+4
source share
1 answer

PoolingHttpClientConnectionManager ConnPoolControl<HttpRoute>, , , , HttpRoute.

, HttpRoute

.

HttpRoute :

HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, RouteInfo.TunnelType tunnelled, RouteInfo.LayerType layered)

RouteInfo.LayerType, :

. . , TLS/SSL, . , .

, "" , url , "" .

+4

Source: https://habr.com/ru/post/1656723/


All Articles