Uses of Class
org.apache.hc.client5.http.HttpRoute
-
Packages that use HttpRoute Package Description org.apache.hc.client5.http 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.org.apache.hc.client5.http.async HTTP client APIs based on the asynchronous, event driven I/O model.org.apache.hc.client5.http.classic HTTP client APIs based on the classic (blocking) I/O model.org.apache.hc.client5.http.impl org.apache.hc.client5.http.impl.async Asynchronous HTTP client API implementation that supports both HTTP/2 and HTTP/1.1 transport.org.apache.hc.client5.http.impl.classic Classic HTTP client API implementation that supports HTTP/1.1 transport only.org.apache.hc.client5.http.impl.io Client connection management functions based the classic connection management APIs.org.apache.hc.client5.http.impl.nio Client connection management functions based the asynchronous connection management APIs.org.apache.hc.client5.http.impl.routing Standard client connection routing API implementations.org.apache.hc.client5.http.io Connection management APIs based on the classic (blocking) I/O model.org.apache.hc.client5.http.nio Connection management APIs based on the asynchronous I/O model.org.apache.hc.client5.http.routing Client connection routing APIs. -
-
Uses of HttpRoute in org.apache.hc.client5.http
Methods in org.apache.hc.client5.http that return HttpRoute Modifier and Type Method Description HttpRoute
RouteTracker. toRoute()
Obtains the tracked route.Methods in org.apache.hc.client5.http with parameters of type HttpRoute Modifier and Type Method Description default java.lang.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.java.lang.Object
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 HttpRoute Constructor Description RouteTracker(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 HttpRoute Modifier and Type Field Description HttpRoute
AsyncExecChain.Scope. route
Methods in org.apache.hc.client5.http.async with parameters of type HttpRoute Modifier and Type Method Description org.apache.hc.core5.concurrent.Cancellable
AsyncExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.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 HttpRoute Constructor Description Scope(java.lang.String exchangeId, HttpRoute route, org.apache.hc.core5.http.HttpRequest originalRequest, org.apache.hc.core5.concurrent.CancellableDependency cancellableDependency, HttpClientContext clientContext, AsyncExecRuntime execRuntime)
Scope(java.lang.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, java.util.concurrent.atomic.AtomicInteger execCount)
-
Uses of HttpRoute in org.apache.hc.client5.http.classic
Fields in org.apache.hc.client5.http.classic declared as HttpRoute Modifier and Type Field Description HttpRoute
ExecChain.Scope. route
Methods in org.apache.hc.client5.http.classic with parameters of type HttpRoute Modifier and Type Method Description void
ExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object state, HttpClientContext context)
Acquires a connection endpoint.void
BackoffManager. backOff(HttpRoute route)
Called when we have decided that the result of using a connection should be interpreted as a backoff signal.void
BackoffManager. probe(HttpRoute route)
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 HttpRoute Constructor Description Scope(java.lang.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 HttpRoute Modifier and Type Method Description static java.lang.String
ConnPoolSupport. formatStats(HttpRoute route, java.lang.Object state, org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool)
java.lang.Object
DefaultUserTokenHandler. getUserToken(HttpRoute route, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
java.lang.Object
DefaultUserTokenHandler. getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context)
java.lang.Object
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 HttpRoute Modifier and Type Method Description static java.lang.String
ConnPoolSupport. formatStats(HttpRoute route, java.lang.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 HttpRoute Modifier and Type Method Description (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 HttpRoute Modifier and Type Method Description org.apache.hc.core5.concurrent.Cancellable
InternalH2AsyncExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object object, HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)
org.apache.hc.core5.concurrent.Cancellable
InternalHttpAsyncExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.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 Constructor Description State(HttpRoute route)
-
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 HttpRoute Modifier and Type Field Description private org.apache.hc.core5.pool.ConnPoolControl<HttpRoute>
AbstractBackoff. connPerRoute
Connection pool control responsible for managing the maximum number of connections per HTTP route.private java.util.Map<HttpRoute,java.time.Instant>
AbstractBackoff. lastRouteBackoffs
A map that stores the last backoff timestamp for each HTTP route.private java.util.Map<HttpRoute,java.time.Instant>
AbstractBackoff. lastRouteProbes
A map that stores the last probe timestamp for each HTTP route.private java.util.concurrent.ConcurrentHashMap<HttpRoute,java.util.concurrent.atomic.AtomicInteger>
LinearBackoffManager. routeAttempts
Methods in org.apache.hc.client5.http.impl.classic that return HttpRoute Modifier and Type Method Description private 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 HttpRoute Modifier and Type Method Description protected org.apache.hc.core5.pool.ConnPoolControl<HttpRoute>
AbstractBackoff. getConnPerRoute()
Returns the connection pool control for managing the maximum number of connections per route.protected java.util.Map<HttpRoute,java.time.Instant>
AbstractBackoff. getLastRouteBackoffs()
Returns the map containing the last backoff times for each HttpRoute.protected java.util.Map<HttpRoute,java.time.Instant>
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 HttpRoute Modifier and Type Method Description void
InternalExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object object, HttpClientContext context)
void
AbstractBackoff. backOff(HttpRoute route)
Reduces the number of maximum allowed connections for the specified route based on the exponential backoff algorithm.void
LinearBackoffManager. backOff(HttpRoute route)
private boolean
ConnectExec. createTunnelToProxy(HttpRoute route, int hop, HttpClientContext context)
Creates a tunnel to an intermediate proxy.private boolean
ConnectExec. createTunnelToTarget(java.lang.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(java.util.Map<HttpRoute,java.lang.Long> updates, HttpRoute route)
Retrieves the last update timestamp for the specified route from the provided updates map.void
AbstractBackoff. probe(HttpRoute route)
Increases the number of maximum allowed connections for the specified route after a successful connection has been established.void
LinearBackoffManager. probe(HttpRoute route)
Adjusts the maximum number of connections for the specified route, decreasing it by the increment value.private boolean
LinearBackoffManager. shouldSkip(HttpRoute route, java.time.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 HttpRoute Modifier and Type Method Description long
AbstractBackoff. getLastUpdate(java.util.Map<HttpRoute,java.lang.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 HttpRoute Constructor Description AbstractBackoff(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 HttpRoute Modifier and Type Field Description private HttpRoute
BasicHttpClientConnectionManager.InternalConnectionEndpoint. route
private HttpRoute
BasicHttpClientConnectionManager. route
Fields in org.apache.hc.client5.http.impl.io with type parameters of type HttpRoute Modifier and Type Field Description private org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>
PoolingHttpClientConnectionManager. connectionConfigResolver
private org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>
PoolingHttpClientConnectionManagerBuilder. connectionConfigResolver
private org.apache.hc.core5.pool.ManagedConnPool<HttpRoute,ManagedHttpClientConnection>
PoolingHttpClientConnectionManager. pool
private java.util.concurrent.atomic.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 HttpRoute Modifier and Type Method Description (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 HttpRoute Modifier and Type Method Description (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()
java.util.Set<HttpRoute>
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 HttpRoute Modifier and Type Method Description (package private) ManagedHttpClientConnection
BasicHttpClientConnectionManager. getConnection(HttpRoute route, java.lang.Object state)
int
PoolingHttpClientConnectionManager. getMaxPerRoute(HttpRoute route)
org.apache.hc.core5.pool.PoolStats
PoolingHttpClientConnectionManager. getStats(HttpRoute route)
LeaseRequest
BasicHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.Object state)
LeaseRequest
BasicHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.Object state)
LeaseRequest
PoolingHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.Object state)
LeaseRequest
PoolingHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.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 HttpRoute Modifier and Type Method Description (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
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
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 HttpRoute Constructor Description InternalConnectionEndpoint(HttpRoute route, ManagedHttpClientConnection conn)
Constructor parameters in org.apache.hc.client5.http.impl.io with type arguments of type HttpRoute Constructor Description InternalConnectionEndpoint(org.apache.hc.core5.pool.PoolEntry<HttpRoute,ManagedHttpClientConnection> poolEntry)
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 HttpRoute Modifier and Type Field Description private org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>
PoolingAsyncClientConnectionManager. connectionConfigResolver
private org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>
PoolingAsyncClientConnectionManagerBuilder. connectionConfigResolver
private org.apache.hc.core5.pool.ManagedConnPool<HttpRoute,ManagedAsyncClientConnection>
PoolingAsyncClientConnectionManager. pool
private java.util.concurrent.atomic.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 HttpRoute Modifier and Type Method Description (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()
java.util.Set<HttpRoute>
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 HttpRoute Modifier and Type Method Description int
PoolingAsyncClientConnectionManager. getMaxPerRoute(HttpRoute route)
org.apache.hc.core5.pool.PoolStats
PoolingAsyncClientConnectionManager. getStats(HttpRoute route)
java.util.concurrent.Future<AsyncConnectionEndpoint>
PoolingAsyncClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.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 HttpRoute Modifier and Type Method Description (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
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 HttpRoute Constructor Description InternalConnectionEndpoint(org.apache.hc.core5.pool.PoolEntry<HttpRoute,ManagedAsyncClientConnection> poolEntry)
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 HttpRoute Modifier and Type Method Description 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 HttpRoute Modifier and Type Method Description LeaseRequest
HttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.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 HttpRoute Modifier and Type Method Description java.util.concurrent.Future<AsyncConnectionEndpoint>
AsyncClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.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 HttpRoute Modifier and Type Method Description HttpRoute
HttpRoutePlanner. determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context)
Determines the route for the given host.
-