public class HttpClientContext
extends org.apache.hc.core5.http.protocol.HttpCoreContext
HttpContext attributes used in the course
 of HTTP request execution.| Modifier and Type | Field and Description | 
|---|---|
| static String | AUTH_CACHEAttribute name of a  AuthCacheobject
 that represents the auth scheme cache. | 
| static String | AUTH_EXCHANGE_MAPAttribute name of a map containing actual  AuthExchanges keyed by their respectiveHttpHost. | 
| static String | AUTHSCHEME_REGISTRYAttribute name of a  Lookupobject that represents
 the actualAuthSchemeFactoryregistry. | 
| static String | COOKIE_ORIGINAttribute name of a  CookieOriginobject that represents the actual details of the origin server. | 
| static String | COOKIE_SPECAttribute name of a  CookieSpecobject that represents the actual cookie specification. | 
| static String | COOKIE_STOREAttribute name of a  CookieStoreobject that represents the actual cookie store. | 
| static String | COOKIESPEC_REGISTRYAttribute name of a  Lookupobject that represents
 the actualCookieSpecFactoryregistry. | 
| static String | CREDS_PROVIDERAttribute name of a  CredentialsProviderobject that represents the actual credentials provider. | 
| static String | HTTP_ROUTEAttribute name of a  RouteInfoobject that represents the actual connection route. | 
| static String | REDIRECT_LOCATIONSAttribute name of a  RedirectLocationsobject that represents a collection of all
 redirect locations received in the process of request execution. | 
| static String | REQUEST_CONFIGAttribute name of a  RequestConfigobject that
 represents the actual request configuration. | 
| static String | USER_TOKEN | 
| Constructor and Description | 
|---|
| HttpClientContext() | 
| HttpClientContext(org.apache.hc.core5.http.protocol.HttpContext context) | 
public static final String HTTP_ROUTE
RouteInfo
 object that represents the actual connection route.public static final String REDIRECT_LOCATIONS
RedirectLocations object that represents a collection of all
 redirect locations received in the process of request execution.public static final String COOKIESPEC_REGISTRY
Lookup object that represents
 the actual CookieSpecFactory registry.public static final String COOKIE_SPEC
CookieSpec
 object that represents the actual cookie specification.public static final String COOKIE_ORIGIN
CookieOrigin
 object that represents the actual details of the origin server.public static final String COOKIE_STORE
CookieStore
 object that represents the actual cookie store.public static final String CREDS_PROVIDER
CredentialsProvider
 object that represents the actual credentials provider.public static final String AUTH_CACHE
AuthCache object
 that represents the auth scheme cache.public static final String AUTH_EXCHANGE_MAP
AuthExchanges keyed by their respective
 HttpHost.public static final String USER_TOKEN
public static final String AUTHSCHEME_REGISTRY
Lookup object that represents
 the actual AuthSchemeFactory registry.public static final String REQUEST_CONFIG
RequestConfig object that
 represents the actual request configuration.public HttpClientContext(org.apache.hc.core5.http.protocol.HttpContext context)
public HttpClientContext()
public static HttpClientContext adapt(org.apache.hc.core5.http.protocol.HttpContext context)
public static HttpClientContext create()
public RouteInfo getHttpRoute()
public RedirectLocations getRedirectLocations()
public CookieStore getCookieStore()
public void setCookieStore(CookieStore cookieStore)
public CookieSpec getCookieSpec()
public CookieOrigin getCookieOrigin()
public org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> getCookieSpecRegistry()
public void setCookieSpecRegistry(org.apache.hc.core5.http.config.Lookup<CookieSpecFactory> lookup)
public org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> getAuthSchemeRegistry()
public void setAuthSchemeRegistry(org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> lookup)
public CredentialsProvider getCredentialsProvider()
public void setCredentialsProvider(CredentialsProvider credentialsProvider)
public AuthCache getAuthCache()
public void setAuthCache(AuthCache authCache)
public Map<org.apache.hc.core5.http.HttpHost,AuthExchange> getAuthExchanges()
public AuthExchange getAuthExchange(org.apache.hc.core5.http.HttpHost host)
public void setAuthExchange(org.apache.hc.core5.http.HttpHost host,
                   AuthExchange authExchange)
public void resetAuthExchange(org.apache.hc.core5.http.HttpHost host,
                     AuthScheme authScheme)
public <T> T getUserToken(Class<T> clazz)
public Object getUserToken()
public void setUserToken(Object obj)
public RequestConfig getRequestConfig()
public void setRequestConfig(RequestConfig config)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.