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 Object
UserTokenHandler.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 benull
if 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 benull
if 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.Cancellable
AsyncExecRuntime.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 TypeMethodDescriptionvoid
ExecRuntime.acquireEndpoint
(String id, HttpRoute route, Object state, HttpClientContext context) Acquires a connection endpoint.void
Called when we have decided that the result of using a connection should be interpreted as a backoff signal.void
Called 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 String
ConnPoolSupport.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 String
ConnPoolSupport.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 HttpRoute
InternalAbstractHttpAsyncClient.determineRoute
(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) (package private) HttpRoute
InternalH2AsyncClient.determineRoute
(org.apache.hc.core5.http.HttpHost httpHost, HttpClientContext clientContext) (package private) HttpRoute
InternalHttpAsyncClient.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.Cancellable
InternalH2AsyncExecRuntime.acquireEndpoint
(String id, HttpRoute route, Object object, HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback) org.apache.hc.core5.concurrent.Cancellable
InternalHttpAsyncExecRuntime.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.connPerRoute
Connection pool control responsible for managing the maximum number of connections per HTTP route.AbstractBackoff.lastRouteBackoffs
A map that stores the last backoff timestamp for each HTTP route.AbstractBackoff.lastRouteProbes
A map that stores the last probe timestamp for each HTTP route.private final ConcurrentHashMap
<HttpRoute, AtomicInteger> LinearBackoffManager.routeAttempts
Methods in org.apache.hc.client5.http.impl.classic that return HttpRouteModifier and TypeMethodDescriptionprivate HttpRoute
InternalHttpClient.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 TypeMethodDescriptionvoid
InternalExecRuntime.acquireEndpoint
(String id, HttpRoute route, Object object, HttpClientContext context) void
Reduces the number of maximum allowed connections for the specified route based on the exponential backoff algorithm.void
private boolean
ConnectExec.createTunnelToProxy
(HttpRoute route, int hop, HttpClientContext context) Creates a tunnel to an intermediate proxy.private boolean
ConnectExec.createTunnelToTarget
(String exchangeId, HttpRoute route, org.apache.hc.core5.http.HttpRequest request, ExecRuntime execRuntime, HttpClientContext context) Creates a tunnel to the target server.long
AbstractBackoff.getLastUpdate
(Map<HttpRoute, Long> updates, HttpRoute route) Retrieves the last update timestamp for the specified route from the provided updates map.void
Increases the number of maximum allowed connections for the specified route after a successful connection has been established.void
Adjusts the maximum number of connections for the specified route, decreasing it by the increment value.private boolean
LinearBackoffManager.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 TypeMethodDescriptionlong
AbstractBackoff.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
Fields in org.apache.hc.client5.http.impl.io declared as HttpRouteModifier and TypeFieldDescriptionprivate final HttpRoute
BasicHttpClientConnectionManager.InternalConnectionEndpoint.route
private HttpRoute
BasicHttpClientConnectionManager.route
Fields 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.connectionConfigResolver
private org.apache.hc.core5.function.Resolver
<HttpRoute, ConnectionConfig> PoolingHttpClientConnectionManagerBuilder.connectionConfigResolver
private final org.apache.hc.core5.pool.ManagedConnPool
<HttpRoute, ManagedHttpClientConnection> PoolingHttpClientConnectionManager.pool
private final AtomicReference
<org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection>> PoolingHttpClientConnectionManager.InternalConnectionEndpoint.poolEntryRef
private org.apache.hc.core5.function.Resolver
<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> PoolingHttpClientConnectionManager.socketConfigResolver
private org.apache.hc.core5.function.Resolver
<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> PoolingHttpClientConnectionManagerBuilder.socketConfigResolver
Methods in org.apache.hc.client5.http.impl.io that return HttpRouteModifier and TypeMethodDescription(package private) HttpRoute
BasicHttpClientConnectionManager.getRoute()
(package private) HttpRoute
BasicHttpClientConnectionManager.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) ManagedHttpClientConnection
BasicHttpClientConnectionManager.getConnection
(HttpRoute route, Object state) int
PoolingHttpClientConnectionManager.getMaxPerRoute
(HttpRoute route) org.apache.hc.core5.pool.PoolStats
BasicHttpClientConnectionManager.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 ConnectionConfig
PoolingHttpClientConnectionManager.resolveConnectionConfig
(HttpRoute route) private org.apache.hc.core5.http.io.SocketConfig
PoolingHttpClientConnectionManager.resolveSocketConfig
(HttpRoute route) void
PoolingHttpClientConnectionManager.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) void
PoolingHttpClientConnectionManager.closeIfExpired
(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedHttpClientConnection> entry) void
PoolingHttpClientConnectionManager.setConnectionConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) SetsResolver
ofConnectionConfig
on a per route basis.PoolingHttpClientConnectionManagerBuilder.setConnectionConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) AssignsResolver
ofConnectionConfig
on a per route basis.void
PoolingHttpClientConnectionManager.setSocketConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> socketConfigResolver) SetsResolver
ofSocketConfig
on a per route basis.PoolingHttpClientConnectionManagerBuilder.setSocketConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, org.apache.hc.core5.http.io.SocketConfig> socketConfigResolver) AssignsResolver
ofSocketConfig
on 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) protected
PoolingHttpClientConnectionManager
(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
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.connectionConfigResolver
private org.apache.hc.core5.function.Resolver
<HttpRoute, ConnectionConfig> PoolingAsyncClientConnectionManagerBuilder.connectionConfigResolver
private final org.apache.hc.core5.pool.ManagedConnPool
<HttpRoute, ManagedAsyncClientConnection> PoolingAsyncClientConnectionManager.pool
private final AtomicReference
<org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection>> PoolingAsyncClientConnectionManager.InternalConnectionEndpoint.poolEntryRef
Methods 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 TypeMethodDescriptionint
PoolingAsyncClientConnectionManager.getMaxPerRoute
(HttpRoute route) org.apache.hc.core5.pool.PoolStats
PoolingAsyncClientConnectionManager.lease
(String id, HttpRoute route, Object state, org.apache.hc.core5.util.Timeout requestTimeout, org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback) private ConnectionConfig
PoolingAsyncClientConnectionManager.resolveConnectionConfig
(HttpRoute route) void
PoolingAsyncClientConnectionManager.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) void
PoolingAsyncClientConnectionManager.closeIfExpired
(org.apache.hc.core5.pool.PoolEntry<HttpRoute, ManagedAsyncClientConnection> entry) void
PoolingAsyncClientConnectionManager.setConnectionConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) SetsResolver
ofConnectionConfig
on a per route basis.PoolingAsyncClientConnectionManagerBuilder.setConnectionConfigResolver
(org.apache.hc.core5.function.Resolver<HttpRoute, ConnectionConfig> connectionConfigResolver) AssignsResolver
ofConnectionConfig
on 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) protected
PoolingAsyncClientConnectionManager
(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 HttpRoute
DefaultRoutePlanner.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 aLeaseRequest
object which can be used to obtain aConnectionEndpoint
to 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 aFuture
object which can be used to obtain anAsyncConnectionEndpoint
or 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)