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 HttpRouteRouteTracker. 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.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.java.lang.ObjectUserTokenHandler. 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 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 HttpRouteAsyncExecChain.Scope. routeMethods in org.apache.hc.client5.http.async with parameters of type HttpRoute Modifier and Type Method Description org.apache.hc.core5.concurrent.CancellableAsyncExecRuntime. 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 HttpRouteExecChain.Scope. routeMethods in org.apache.hc.client5.http.classic with parameters of type HttpRoute Modifier and Type Method Description voidExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object state, HttpClientContext context)Acquires a connection endpoint.voidBackoffManager. backOff(HttpRoute route)Called when we have decided that the result of using a connection should be interpreted as a backoff signal.voidBackoffManager. 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.StringConnPoolSupport. formatStats(HttpRoute route, java.lang.Object state, org.apache.hc.core5.pool.ConnPoolControl<HttpRoute> connPool)java.lang.ObjectDefaultUserTokenHandler. getUserToken(HttpRoute route, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)java.lang.ObjectDefaultUserTokenHandler. getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context)java.lang.ObjectNoopUserTokenHandler. 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.StringConnPoolSupport. 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 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 HttpRoute Modifier and Type Method Description org.apache.hc.core5.concurrent.CancellableInternalH2AsyncExecRuntime. 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.CancellableInternalHttpAsyncExecRuntime. 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. connPerRouteConnection pool control responsible for managing the maximum number of connections per HTTP route.private java.util.Map<HttpRoute,java.time.Instant>AbstractBackoff. lastRouteBackoffsA map that stores the last backoff timestamp for each HTTP route.private java.util.Map<HttpRoute,java.time.Instant>AbstractBackoff. lastRouteProbesA map that stores the last probe timestamp for each HTTP route.private java.util.concurrent.ConcurrentHashMap<HttpRoute,java.util.concurrent.atomic.AtomicInteger>LinearBackoffManager. routeAttemptsMethods in org.apache.hc.client5.http.impl.classic that return HttpRoute Modifier and Type Method Description private 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 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 voidInternalExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object object, HttpClientContext context)voidAbstractBackoff. backOff(HttpRoute route)Reduces the number of maximum allowed connections for the specified route based on the exponential backoff algorithm.voidLinearBackoffManager. backOff(HttpRoute route)private booleanConnectExec. createTunnelToProxy(HttpRoute route, int hop, HttpClientContext context)Creates a tunnel to an intermediate proxy.private booleanConnectExec. 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.longAbstractBackoff. 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.voidAbstractBackoff. probe(HttpRoute route)Increases the number of maximum allowed connections for the specified route after a successful connection has been established.voidLinearBackoffManager. probe(HttpRoute route)Adjusts the maximum number of connections for the specified route, decreasing it by the increment value.private booleanLinearBackoffManager. 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 longAbstractBackoff. 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 HttpRouteBasicHttpClientConnectionManager.InternalConnectionEndpoint. routeprivate HttpRouteBasicHttpClientConnectionManager. routeFields 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. connectionConfigResolverprivate org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>PoolingHttpClientConnectionManagerBuilder. connectionConfigResolverprivate org.apache.hc.core5.pool.ManagedConnPool<HttpRoute,ManagedHttpClientConnection>PoolingHttpClientConnectionManager. poolprivate java.util.concurrent.atomic.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 HttpRoute Modifier and Type Method Description (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 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) ManagedHttpClientConnectionBasicHttpClientConnectionManager. getConnection(HttpRoute route, java.lang.Object state)intPoolingHttpClientConnectionManager. getMaxPerRoute(HttpRoute route)org.apache.hc.core5.pool.PoolStatsPoolingHttpClientConnectionManager. getStats(HttpRoute route)LeaseRequestBasicHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.Object state)LeaseRequestBasicHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.Object state)LeaseRequestPoolingHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, java.lang.Object state)LeaseRequestPoolingHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.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 HttpRoute Modifier and Type Method Description (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.PoolingHttpClientConnectionManagerBuilderPoolingHttpClientConnectionManagerBuilder. 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.PoolingHttpClientConnectionManagerBuilderPoolingHttpClientConnectionManagerBuilder. 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 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. connectionConfigResolverprivate org.apache.hc.core5.function.Resolver<HttpRoute,ConnectionConfig>PoolingAsyncClientConnectionManagerBuilder. connectionConfigResolverprivate org.apache.hc.core5.pool.ManagedConnPool<HttpRoute,ManagedAsyncClientConnection>PoolingAsyncClientConnectionManager. poolprivate java.util.concurrent.atomic.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 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 intPoolingAsyncClientConnectionManager. getMaxPerRoute(HttpRoute route)org.apache.hc.core5.pool.PoolStatsPoolingAsyncClientConnectionManager. 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 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 HttpRoute Modifier and Type Method Description (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.PoolingAsyncClientConnectionManagerBuilderPoolingAsyncClientConnectionManagerBuilder. 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 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 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 HttpRoute Modifier and Type Method Description LeaseRequestHttpClientConnectionManager. lease(java.lang.String id, HttpRoute route, org.apache.hc.core5.util.Timeout requestTimeout, java.lang.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 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 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 HttpRoute Modifier and Type Method Description HttpRouteHttpRoutePlanner. determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context)Determines the route for the given host.
-