Uses of Class
org.apache.hc.client5.http.protocol.HttpClientContext
-
Packages that use HttpClientContext 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.cache Caching APIs for both the classic and the asynchronous HTTP transports.org.apache.hc.client5.http.classic HTTP client APIs based on the classic (blocking) I/O model.org.apache.hc.client5.http.fluent Simple facade APIs for HttpClient based on the concept of a fluent interface.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.auth Standard and common HTTP authentication schemes.org.apache.hc.client5.http.impl.cache Caching API implementation for both the classic and the asynchronous HTTP transports.org.apache.hc.client5.http.impl.classic Classic HTTP client API implementation that supports HTTP/1.1 transport only.org.apache.hc.client5.http.protocol HTTP protocol interceptors that enable advanced functionality such as HTTP state management and authentication state caching. -
-
Uses of HttpClientContext in org.apache.hc.client5.http
Classes in org.apache.hc.client5.http with type parameters of type HttpClientContext Modifier and Type Class Description classAbstractClientContextBuilder<T extends HttpClientContext>AbstractHttpClientContextbuilder.Methods in org.apache.hc.client5.http that return HttpClientContext Modifier and Type Method Description protected HttpClientContextContextBuilder. createContext() -
Uses of HttpClientContext in org.apache.hc.client5.http.async
Fields in org.apache.hc.client5.http.async declared as HttpClientContext Modifier and Type Field Description HttpClientContextAsyncExecChain.Scope. clientContextMethods in org.apache.hc.client5.http.async with parameters of type HttpClientContext 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.org.apache.hc.core5.concurrent.CancellableAsyncExecRuntime. connectEndpoint(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)Initiates operation to connect the local endpoint to the initial hop (connection target in case of a direct route or to the first proxy hop in case of a route via a proxy or multiple proxies).org.apache.hc.core5.concurrent.CancellableAsyncExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler, HttpClientContext context)Initiates a message exchange using the given handler.voidAsyncExecRuntime. upgradeTls(HttpClientContext context)Upgrades transport security of the active connection by using the TLS security protocol.default voidAsyncExecRuntime. upgradeTls(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)Upgrades transport security of the active connection by using the TLS security protocol.Constructors in org.apache.hc.client5.http.async with parameters of type HttpClientContext 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 HttpClientContext in org.apache.hc.client5.http.cache
Subclasses of HttpClientContext in org.apache.hc.client5.http.cache Modifier and Type Class Description classHttpCacheContextCache executionHttpContext.(package private) static classHttpCacheContext.DelegateInternal adaptor class that delegates all its method calls toHttpClientContext.Fields in org.apache.hc.client5.http.cache declared as HttpClientContext Modifier and Type Field Description private HttpClientContextHttpCacheContext.Delegate. clientContextConstructors in org.apache.hc.client5.http.cache with parameters of type HttpClientContext Constructor Description Delegate(HttpClientContext clientContext) -
Uses of HttpClientContext in org.apache.hc.client5.http.classic
Fields in org.apache.hc.client5.http.classic declared as HttpClientContext Modifier and Type Field Description HttpClientContextExecChain.Scope. clientContextMethods in org.apache.hc.client5.http.classic with parameters of type HttpClientContext Modifier and Type Method Description voidExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object state, HttpClientContext context)Acquires a connection endpoint.voidExecRuntime. connectEndpoint(HttpClientContext context)Connect the local endpoint to the initial hop (connection target in case of a direct route or to the first proxy hop in case of a route via a proxy or multiple proxies).org.apache.hc.core5.http.ClassicHttpResponseExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.ClassicHttpRequest request, HttpClientContext context)Executes HTTP request using the given context.default org.apache.hc.core5.http.ClassicHttpResponseExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpResponseInformationCallback informationCallback, HttpClientContext context)Executes HTTP request using the given context.voidExecRuntime. upgradeTls(HttpClientContext context)Upgrades transport security of the active connection by using the TLS security protocol.Constructors in org.apache.hc.client5.http.classic with parameters of type HttpClientContext Constructor Description Scope(java.lang.String exchangeId, HttpRoute route, org.apache.hc.core5.http.ClassicHttpRequest originalRequest, ExecRuntime execRuntime, HttpClientContext clientContext) -
Uses of HttpClientContext in org.apache.hc.client5.http.fluent
Methods in org.apache.hc.client5.http.fluent with parameters of type HttpClientContext Modifier and Type Method Description (package private) org.apache.hc.core5.http.ClassicHttpResponseRequest. internalExecute(CloseableHttpClient client, HttpClientContext localContext) -
Uses of HttpClientContext in org.apache.hc.client5.http.impl.async
Fields in org.apache.hc.client5.http.impl.async with type parameters of type HttpClientContext Modifier and Type Field Description private java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>InternalAbstractHttpAsyncClient. contextAdaptorMethods in org.apache.hc.client5.http.impl.async that return types with arguments of type HttpClientContext Modifier and Type Method Description protected java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>HttpAsyncClientBuilder. contextAdaptor()Methods in org.apache.hc.client5.http.impl.async with parameters of type HttpClientContext 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)org.apache.hc.core5.concurrent.CancellableInternalH2AsyncExecRuntime. connectEndpoint(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)org.apache.hc.core5.concurrent.CancellableInternalHttpAsyncExecRuntime. connectEndpoint(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)(package private) abstract HttpRouteInternalAbstractHttpAsyncClient. determineRoute(org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.core5.http.HttpRequest request, HttpClientContext clientContext)(package private) HttpRouteInternalH2AsyncClient. determineRoute(org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.core5.http.HttpRequest request, HttpClientContext clientContext)(package private) HttpRouteInternalHttpAsyncClient. determineRoute(org.apache.hc.core5.http.HttpHost httpHost, org.apache.hc.core5.http.HttpRequest request, HttpClientContext clientContext)private org.apache.hc.core5.concurrent.CancellableInternalHttpAsyncExecRuntime. doExecute(java.lang.String id, AsyncConnectionEndpoint endpoint, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler, HttpClientContext context)org.apache.hc.core5.concurrent.CancellableInternalH2AsyncExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler, HttpClientContext context)org.apache.hc.core5.concurrent.CancellableInternalHttpAsyncExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.nio.AsyncClientExchangeHandler exchangeHandler, HttpClientContext context)private java.util.concurrent.Future<AsyncConnectionEndpoint>MinimalHttpAsyncClient. leaseEndpoint(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.util.Timeout connectionRequestTimeout, org.apache.hc.core5.util.Timeout connectTimeout, HttpClientContext clientContext, org.apache.hc.core5.concurrent.FutureCallback<AsyncConnectionEndpoint> callback)private booleanAsyncConnectExec. needAuthentication(AuthExchange proxyAuthExchange, org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpResponse response, HttpClientContext context)private booleanAsyncProtocolExec. needAuthentication(AuthExchange targetAuthExchange, AuthExchange proxyAuthExchange, org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, java.lang.String pathPrefix, org.apache.hc.core5.http.HttpResponse response, HttpClientContext context)private voidInternalAbstractHttpAsyncClient. setupContext(HttpClientContext context)voidInternalH2AsyncExecRuntime. upgradeTls(HttpClientContext context)voidInternalH2AsyncExecRuntime. upgradeTls(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)voidInternalHttpAsyncExecRuntime. upgradeTls(HttpClientContext context)voidInternalHttpAsyncExecRuntime. upgradeTls(HttpClientContext context, org.apache.hc.core5.concurrent.FutureCallback<AsyncExecRuntime> callback)Constructor parameters in org.apache.hc.client5.http.impl.async with type arguments of type HttpClientContext Constructor Description InternalAbstractHttpAsyncClient(org.apache.hc.core5.reactor.DefaultConnectingIOReactor ioReactor, AsyncPushConsumerRegistry pushConsumerRegistry, java.util.concurrent.ThreadFactory threadFactory, AsyncExecChainElement execChain, org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry, org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry, CookieStore cookieStore, CredentialsProvider credentialsProvider, java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> contextAdaptor, RequestConfig defaultConfig, java.util.List<java.io.Closeable> closeables)InternalHttpAsyncClient(org.apache.hc.core5.reactor.DefaultConnectingIOReactor ioReactor, AsyncExecChainElement execChain, AsyncPushConsumerRegistry pushConsumerRegistry, java.util.concurrent.ThreadFactory threadFactory, AsyncClientConnectionManager manager, HttpRoutePlanner routePlanner, TlsConfig tlsConfig, org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry, org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry, CookieStore cookieStore, CredentialsProvider credentialsProvider, java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> contextAdaptor, RequestConfig defaultConfig, java.util.List<java.io.Closeable> closeables) -
Uses of HttpClientContext in org.apache.hc.client5.http.impl.auth
Methods in org.apache.hc.client5.http.impl.auth with parameters of type HttpClientContext Modifier and Type Method Description private booleanAuthenticationHandler. checkChallenged(ChallengeType challengeType, org.apache.hc.core5.http.HttpResponse response, HttpClientContext clientContext)Determines whether the given response represents an authentication challenge of challangeType, without changing theAuthExchangestate.private voidAuthCacheKeeper. clearCache(org.apache.hc.core5.http.HttpHost host, java.lang.String pathPrefix, HttpClientContext clientContext)java.util.Map<java.lang.String,AuthChallenge>AuthenticationHandler. extractChallengeMap(ChallengeType challengeType, org.apache.hc.core5.http.HttpResponse response, HttpClientContext context)private static java.net.PasswordAuthenticationSystemDefaultCredentialsProvider. getSystemCreds(java.lang.String protocol, AuthScope authScope, java.net.Authenticator.RequestorType requestorType, HttpClientContext context)private AuthSchemeAuthCacheKeeper. loadFromCache(org.apache.hc.core5.http.HttpHost host, java.lang.String pathPrefix, HttpClientContext clientContext)private voidAuthCacheKeeper. updateCache(org.apache.hc.core5.http.HttpHost host, java.lang.String pathPrefix, AuthScheme authScheme, HttpClientContext clientContext) -
Uses of HttpClientContext in org.apache.hc.client5.http.impl.cache
Methods in org.apache.hc.client5.http.impl.cache that return types with arguments of type HttpClientContext Modifier and Type Method Description protected java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>CachingHttpAsyncClientBuilder. contextAdaptor()protected java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>CachingHttpClientBuilder. contextAdaptor() -
Uses of HttpClientContext in org.apache.hc.client5.http.impl.classic
Fields in org.apache.hc.client5.http.impl.classic with type parameters of type HttpClientContext Modifier and Type Field Description private java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>InternalHttpClient. contextAdaptorMethods in org.apache.hc.client5.http.impl.classic that return types with arguments of type HttpClientContext Modifier and Type Method Description protected java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext>HttpClientBuilder. contextAdaptor()Methods in org.apache.hc.client5.http.impl.classic with parameters of type HttpClientContext Modifier and Type Method Description voidInternalExecRuntime. acquireEndpoint(java.lang.String id, HttpRoute route, java.lang.Object object, HttpClientContext context)private voidInternalExecRuntime. connectEndpoint(ConnectionEndpoint endpoint, HttpClientContext context)voidInternalExecRuntime. connectEndpoint(HttpClientContext context)private booleanConnectExec. createTunnelToProxy(HttpRoute route, int hop, HttpClientContext context)Creates a tunnel to an intermediate proxy.private org.apache.hc.core5.http.ClassicHttpResponseConnectExec. 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.org.apache.hc.core5.http.ClassicHttpResponseInternalExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.ClassicHttpRequest request, HttpClientContext context)org.apache.hc.core5.http.ClassicHttpResponseInternalExecRuntime. execute(java.lang.String id, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpResponseInformationCallback informationCallback, HttpClientContext context)private booleanProtocolExec. needAuthentication(AuthExchange targetAuthExchange, AuthExchange proxyAuthExchange, org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, java.lang.String pathPrefix, org.apache.hc.core5.http.HttpResponse response, HttpClientContext context)private voidInternalHttpClient. setupContext(HttpClientContext context)voidInternalExecRuntime. upgradeTls(HttpClientContext context)Constructor parameters in org.apache.hc.client5.http.impl.classic with type arguments of type HttpClientContext Constructor Description InternalHttpClient(HttpClientConnectionManager connManager, org.apache.hc.core5.http.impl.io.HttpRequestExecutor requestExecutor, ExecChainElement execChain, HttpRoutePlanner routePlanner, org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> cookieSpecRegistry, org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry, CookieStore cookieStore, CredentialsProvider credentialsProvider, java.util.function.Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> contextAdaptor, RequestConfig defaultConfig, java.util.List<java.io.Closeable> closeables) -
Uses of HttpClientContext in org.apache.hc.client5.http.protocol
Subclasses of HttpClientContext in org.apache.hc.client5.http.protocol Modifier and Type Class Description (package private) static classHttpClientContext.DelegateInternal adaptor class that delegates all its method calls to a plainHttpContext.Methods in org.apache.hc.client5.http.protocol that return HttpClientContext Modifier and Type Method Description static HttpClientContextHttpClientContext. adapt(org.apache.hc.core5.http.protocol.HttpContext context)Deprecated.static HttpClientContextHttpClientContext. cast(org.apache.hc.core5.http.protocol.HttpContext context)Casts the given genericHttpContextasHttpClientContext.static HttpClientContextHttpClientContext. castOrCreate(org.apache.hc.core5.http.protocol.HttpContext context)Casts the given genericHttpContextasHttpClientContextor creates newHttpClientContextif the given context is null.static HttpClientContextHttpClientContext. create()
-