Uses of Class
org.apache.hc.client5.http.HttpRoute
Packages that use HttpRoute
Package
Description
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
HTTP client APIs based on the asynchronous, event driven I/O model.
HTTP client APIs based on the classic (blocking) I/O model.
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
Client connection management functions based the classic
connection management APIs.
Client connection management functions based the asynchronous
connection management APIs.
Standard client connection routing API implementations.
Connection management APIs based on the classic (blocking) I/O model.
Connection management APIs based on the asynchronous I/O model.
Client connection routing APIs.
-
Uses of HttpRoute in org.apache.hc.client5.http
Methods in org.apache.hc.client5.http that return HttpRouteMethods in org.apache.hc.client5.http with parameters of type HttpRouteModifier and TypeMethodDescriptiondefault ObjectUserTokenHandler.getUserToken(HttpRoute route, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to benullif it is not.UserTokenHandler.getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context) The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to benullif it is not.Constructors in org.apache.hc.client5.http with parameters of type HttpRouteModifierConstructorDescriptionRouteTracker(HttpRoute route) Creates a new tracker for the given route. -
Uses of HttpRoute in org.apache.hc.client5.http.async
Fields in org.apache.hc.client5.http.async declared as HttpRouteMethods in org.apache.hc.client5.http.async with parameters of type HttpRouteModifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.CancellableAsyncExecRuntime.acquireEndpoint(String id, HttpRoute route, Object state, HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) Initiates operation to acquire a connection endpoint.Constructors in org.apache.hc.client5.http.async with parameters of type HttpRouteModifierConstructorDescriptionScope(String exchangeId, HttpRoute route, org.apache.hc.core5.http.HttpRequest originalRequest, org.apache.hc.core5.concurrent.CancellableDependency cancellableDependency, HttpClientContext clientContext, AsyncExecRuntime execRuntime) Deprecated.Scope(String exchangeId, HttpRoute route, org.apache.hc.core5.http.HttpRequest originalRequest, org.apache.hc.core5.concurrent.CancellableDependency cancellableDependency, HttpClientContext clientContext, AsyncExecRuntime execRuntime, AsyncExecChain.Scheduler scheduler, AtomicInteger execCount) -
Uses of HttpRoute in org.apache.hc.client5.http.classic
Fields in org.apache.hc.client5.http.classic declared as HttpRouteMethods in org.apache.hc.client5.http.classic with parameters of type HttpRouteModifier and TypeMethodDescriptionvoidExecRuntime.acquireEndpoint(String id, HttpRoute route, Object state, HttpClientContext context) Acquires a connection endpoint.voidCalled when we have decided that the result of using a connection should be interpreted as a backoff signal.voidCalled when we have determined that the result of using a connection has succeeded and that we may probe for more connections.Constructors in org.apache.hc.client5.http.classic with parameters of type HttpRouteModifierConstructorDescriptionScope(String exchangeId, HttpRoute route, org.apache.hc.core5.http.ClassicHttpRequest originalRequest, ExecRuntime execRuntime, HttpClientContext clientContext) -
Uses of HttpRoute in org.apache.hc.client5.http.impl
Methods in org.apache.hc.client5.http.impl with parameters of type HttpRouteModifier and TypeMethodDescriptionstatic StringConnPoolSupport.formatStats(HttpRoute route, Object state, org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool) DefaultUserTokenHandler.getUserToken(HttpRoute route, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) DefaultUserTokenHandler.getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context) NoopUserTokenHandler.getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context) Method parameters in org.apache.hc.client5.http.impl with type arguments of type HttpRouteModifier and TypeMethodDescriptionstatic StringConnPoolSupport.formatStats(HttpRoute route, Object state, org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool) -
Uses of HttpRoute in org.apache.hc.client5.http.impl.async
Methods in org.apache.hc.client5.http.impl.async that return HttpRouteModifier and TypeMethodDescription(package private) abstract HttpRouteInternalAbstractHttpAsyncClient.determineRoute(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) (package private) HttpRouteInternalH2AsyncClient.determineRoute(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) (package private) HttpRouteInternalHttpAsyncClient.determineRoute(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) Methods in org.apache.hc.client5.http.impl.async with parameters of type HttpRouteModifier and TypeMethodDescriptionorg.apache.hc.core5.concurrent.CancellableInternalH2AsyncExecRuntime.acquireEndpoint(String id, HttpRoute route, Object object, HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) org.apache.hc.core5.concurrent.CancellableInternalHttpAsyncExecRuntime.acquireEndpoint(String id, HttpRoute route, Object object, HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) Constructors in org.apache.hc.client5.http.impl.async with parameters of type HttpRoute -
Uses of HttpRoute in org.apache.hc.client5.http.impl.classic
Fields in org.apache.hc.client5.http.impl.classic with type parameters of type HttpRouteModifier and TypeFieldDescriptionprivate final org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> AbstractBackoff.connPerRouteConnection pool control responsible for managing the maximum number of connections per HTTP route.AbstractBackoff.lastRouteBackoffsA map that stores the last backoff timestamp for each HTTP route.AbstractBackoff.lastRouteProbesA map that stores the last probe timestamp for each HTTP route.private final ConcurrentHashMap<HttpRoute, AtomicInteger> LinearBackoffManager.routeAttemptsMethods in org.apache.hc.client5.http.impl.classic that return HttpRouteModifier and TypeMethodDescriptionprivate HttpRouteInternalHttpClient.determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context) Methods in org.apache.hc.client5.http.impl.classic that return types with arguments of type HttpRouteModifier and TypeMethodDescriptionprotected org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> AbstractBackoff.getConnPerRoute()Returns the connection pool control for managing the maximum number of connections per route.AbstractBackoff.getLastRouteBackoffs()Returns the map containing the last backoff times for each HttpRoute.AbstractBackoff.getLastRouteProbes()Returns the map containing the last probe times for each HttpRoute.Methods in org.apache.hc.client5.http.impl.classic with parameters of type HttpRouteModifier and TypeMethodDescriptionvoidInternalExecRuntime.acquireEndpoint(String id, HttpRoute route, Object object, HttpClientContext context) voidReduces the number of maximum allowed connections for the specified route based on the exponential backoff algorithm.voidprivate booleanConnectExec.createTunnelToProxy(HttpRoute route, int hop, HttpClientContext context) Creates a tunnel to an intermediate proxy.private booleanConnectExec.createTunnelToTarget(String exchangeId, HttpRoute route, org.apache.hc.core5.http.HttpRequest request, ExecRuntime execRuntime, HttpClientContext context) Creates a tunnel to the target server.longAbstractBackoff.getLastUpdate(Map<HttpRoute, Long> updates, HttpRoute route) Retrieves the last update timestamp for the specified route from the provided updates map.voidIncreases the number of maximum allowed connections for the specified route after a successful connection has been established.voidAdjusts the maximum number of connections for the specified route, decreasing it by the increment value.private booleanLinearBackoffManager.shouldSkip(HttpRoute route, Instant now) Determines whether an adjustment action (backoff or probe) should be skipped for the given HttpRoute based on the cool-down period.Method parameters in org.apache.hc.client5.http.impl.classic with type arguments of type HttpRouteModifier and TypeMethodDescriptionlongAbstractBackoff.getLastUpdate(Map<HttpRoute, Long> updates, HttpRoute route) Retrieves the last update timestamp for the specified route from the provided updates map.Constructor parameters in org.apache.hc.client5.http.impl.classic with type arguments of type HttpRouteModifierConstructorDescriptionAbstractBackoff(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPerRoute) Constructs a new ExponentialBackoffManager with the specified connection pool control.AIMDBackoffManager(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPerRoute) ExponentialBackoffManager(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPerRoute) Constructs a new ExponentialBackoffManager with the specified connection pool control.LinearBackoffManager(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPoolControl) Constructs a new LinearBackoffManager with the specified connection pool control.LinearBackoffManager(org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPoolControl, int increment) Constructs a new LinearBackoffManager with the specified connection pool control and backoff increment. -
Uses of HttpRoute in org.apache.hc.client5.http.impl.io
Classes in org.apache.hc.client5.http.impl.io that implement interfaces with type arguments of type HttpRouteModifier and TypeClassDescriptionclassClientConnectionPoolManagermaintains a pool ofManagedHttpClientConnections and is able to service connection requests from multiple execution threads.Fields in org.apache.hc.client5.http.impl.io declared as HttpRouteModifier and TypeFieldDescriptionprivate final HttpRouteBasicHttpClientConnectionManager.InternalConnectionEndpoint.routeprivate HttpRouteBasicHttpClientConnectionManager.routeFields in org.apache.hc.client5.http.impl.io with type parameters of type HttpRouteModifier and TypeFieldDescriptionprivate org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> PoolingHttpClientConnectionManager.connectionConfigResolverprivate org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> PoolingHttpClientConnectionManagerBuilder.connectionConfigResolverprivate final org.apache.hc.core5.pool.ManagedConnPool<HttpRoute, ManagedHttpClientConnection> PoolingHttpClientConnectionManager.poolprivate final AtomicReference<org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection>> PoolingHttpClientConnectionManager.InternalConnectionEndpoint.poolEntryRefprivate org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> PoolingHttpClientConnectionManager.socketConfigResolverprivate org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> PoolingHttpClientConnectionManagerBuilder.socketConfigResolverMethods in org.apache.hc.client5.http.impl.io that return HttpRouteModifier and TypeMethodDescription(package private) HttpRouteBasicHttpClientConnectionManager.getRoute()(package private) HttpRouteBasicHttpClientConnectionManager.InternalConnectionEndpoint.getRoute()Methods in org.apache.hc.client5.http.impl.io that return types with arguments of type HttpRouteModifier and TypeMethodDescription(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> PoolingHttpClientConnectionManager.InternalConnectionEndpoint.detach()(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> PoolingHttpClientConnectionManager.InternalConnectionEndpoint.getPoolEntry()PoolingHttpClientConnectionManager.getRoutes()(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> PoolingHttpClientConnectionManager.InternalConnectionEndpoint.getValidatedPoolEntry()Methods in org.apache.hc.client5.http.impl.io with parameters of type HttpRouteModifier and TypeMethodDescription(package private) ManagedHttpClientConnectionBasicHttpClientConnectionManager.getConnection(HttpRoute route, Object state) intPoolingHttpClientConnectionManager.getMaxPerRoute(HttpRoute route) org.apache.hc.core5.pool.PoolStatsBasicHttpClientConnectionManager.lease(String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, Object state) PoolingHttpClientConnectionManager.lease(String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, Object state) private ConnectionConfigPoolingHttpClientConnectionManager.resolveConnectionConfig(HttpRoute route) private org.apache.hc.core5.http.io.SocketConfigPoolingHttpClientConnectionManager.resolveSocketConfig(HttpRoute route) voidPoolingHttpClientConnectionManager.setMaxPerRoute(HttpRoute route, int max) Method parameters in org.apache.hc.client5.http.impl.io with type arguments of type HttpRouteModifier and TypeMethodDescription(package private) voidPoolingHttpClientConnectionManager.closeIfExpired(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> entry) voidPoolingHttpClientConnectionManager.setConnectionConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) SetsResolverofConnectionConfigon a per route basis.PoolingHttpClientConnectionManagerBuilder.setConnectionConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) AssignsResolverofConnectionConfigon a per route basis.voidPoolingHttpClientConnectionManager.setSocketConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> socketConfigResolver) SetsResolverofSocketConfigon a per route basis.PoolingHttpClientConnectionManagerBuilder.setSocketConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> socketConfigResolver) AssignsResolverofSocketConfigon a per route basis.Constructors in org.apache.hc.client5.http.impl.io with parameters of type HttpRouteModifierConstructorDescriptionConstructor parameters in org.apache.hc.client5.http.impl.io with type arguments of type HttpRouteModifierConstructorDescription(package private)InternalConnectionEndpoint(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> poolEntry) protectedPoolingHttpClientConnectionManager(HttpClientConnectionOperator httpClientConnectionOperator, org.apache.hc.core5.pool.ManagedConnPool<HttpRoute, ManagedHttpClientConnection> pool, org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory) -
Uses of HttpRoute in org.apache.hc.client5.http.impl.nio
Classes in org.apache.hc.client5.http.impl.nio that implement interfaces with type arguments of type HttpRouteModifier and TypeClassDescriptionclassPoolingAsyncClientConnectionManagermaintains a pool of non-blockingHttpConnections and is able to service connection requests from multiple execution threads.Fields in org.apache.hc.client5.http.impl.nio with type parameters of type HttpRouteModifier and TypeFieldDescriptionprivate org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> PoolingAsyncClientConnectionManager.connectionConfigResolverprivate org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> PoolingAsyncClientConnectionManagerBuilder.connectionConfigResolverprivate final org.apache.hc.core5.pool.ManagedConnPool<HttpRoute, ManagedAsyncClientConnection> PoolingAsyncClientConnectionManager.poolprivate final AtomicReference<org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection>> PoolingAsyncClientConnectionManager.InternalConnectionEndpoint.poolEntryRefMethods in org.apache.hc.client5.http.impl.nio that return types with arguments of type HttpRouteModifier and TypeMethodDescription(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> PoolingAsyncClientConnectionManager.InternalConnectionEndpoint.detach()(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> PoolingAsyncClientConnectionManager.InternalConnectionEndpoint.getPoolEntry()PoolingAsyncClientConnectionManager.getRoutes()(package private) org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> PoolingAsyncClientConnectionManager.InternalConnectionEndpoint.getValidatedPoolEntry()Methods in org.apache.hc.client5.http.impl.nio with parameters of type HttpRouteModifier and TypeMethodDescriptionintPoolingAsyncClientConnectionManager.getMaxPerRoute(HttpRoute route) org.apache.hc.core5.pool.PoolStatsPoolingAsyncClientConnectionManager.lease(String id, HttpRoute route, Object state, org.apache.hc.core5.util.Timeout requestTimeout, org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) private ConnectionConfigPoolingAsyncClientConnectionManager.resolveConnectionConfig(HttpRoute route) voidPoolingAsyncClientConnectionManager.setMaxPerRoute(HttpRoute route, int max) Method parameters in org.apache.hc.client5.http.impl.nio with type arguments of type HttpRouteModifier and TypeMethodDescription(package private) voidPoolingAsyncClientConnectionManager.closeIfExpired(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> entry) voidPoolingAsyncClientConnectionManager.setConnectionConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) SetsResolverofConnectionConfigon a per route basis.PoolingAsyncClientConnectionManagerBuilder.setConnectionConfigResolver(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) AssignsResolverofConnectionConfigon a per route basis.Constructor parameters in org.apache.hc.client5.http.impl.nio with type arguments of type HttpRouteModifierConstructorDescription(package private)InternalConnectionEndpoint(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> poolEntry) protectedPoolingAsyncClientConnectionManager(org.apache.hc.core5.pool.ManagedConnPool<HttpRoute, ManagedAsyncClientConnection> pool, AsyncClientConnectionOperator connectionOperator) -
Uses of HttpRoute in org.apache.hc.client5.http.impl.routing
Methods in org.apache.hc.client5.http.impl.routing that return HttpRouteModifier and TypeMethodDescriptionfinal HttpRouteDefaultRoutePlanner.determineRoute(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.protocol.HttpContext context) -
Uses of HttpRoute in org.apache.hc.client5.http.io
Methods in org.apache.hc.client5.http.io with parameters of type HttpRouteModifier and TypeMethodDescriptionHttpClientConnectionManager.lease(String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, Object state) Returns aLeaseRequestobject which can be used to obtain aConnectionEndpointto cancel the request by callingCancellable.cancel(). -
Uses of HttpRoute in org.apache.hc.client5.http.nio
Methods in org.apache.hc.client5.http.nio with parameters of type HttpRouteModifier and TypeMethodDescriptionAsyncClientConnectionManager.lease(String id, HttpRoute route, Object state, org.apache.hc.core5.util.Timeout requestTimeout, org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) Returns aFutureobject which can be used to obtain anAsyncConnectionEndpointor to cancel the request by callingFuture.cancel(boolean). -
Uses of HttpRoute in org.apache.hc.client5.http.routing
Methods in org.apache.hc.client5.http.routing that return HttpRouteModifier and TypeMethodDescriptionHttpRoutePlanner.determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context) Determines the route for the given host.
Scope(String, HttpRoute, HttpRequest, CancellableDependency, HttpClientContext, AsyncExecRuntime, Scheduler, AtomicInteger)