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.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.protocol HTTP protocol interceptors that enable advanced functionality such as HTTP state management and authentication state caching.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.classic
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 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)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.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)Constructs anAIMDBackoffManagerwith the specifiedConnPoolControlandClock.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
Methods in org.apache.hc.client5.http.impl.io that return types with arguments of type HttpRoute Modifier and Type Method Description java.util.Set<HttpRoute>PoolingHttpClientConnectionManager. getRoutes()Methods in org.apache.hc.client5.http.impl.io with parameters of type HttpRoute Modifier and Type Method Description 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)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 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)SetsResolverofConnectionConfigon 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)SetsResolverofSocketConfigon a per route basis.Constructor parameters in org.apache.hc.client5.http.impl.io with type arguments of type HttpRoute Constructor Description 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
Methods in org.apache.hc.client5.http.impl.nio that return types with arguments of type HttpRoute Modifier and Type Method Description java.util.Set<HttpRoute>PoolingAsyncClientConnectionManager. getRoutes()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)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 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)SetsResolverofConnectionConfigon a per route basis.Constructor parameters in org.apache.hc.client5.http.impl.nio with type arguments of type HttpRoute Constructor Description 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.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)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.protocol
Methods in org.apache.hc.client5.http.protocol with parameters of type HttpRoute Modifier and Type Method Description voidHttpClientContext. setRoute(HttpRoute route) -
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 default HttpRouteHttpRoutePlanner. determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)Determines the route for the given host.HttpRouteHttpRoutePlanner. determineRoute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context)Determines the route for the given host.
-