public class HttpClientContext extends HttpCoreContext
HttpContext
attributes used in the course
of HTTP request execution.Modifier and Type | Field and Description |
---|---|
static String |
AUTH_CACHE
Attribute name of a
AuthCache object
that represents the auth scheme cache. |
static String |
AUTH_EXCHANGE_MAP
Attribute name of a map containing actual
AuthExchange s keyed by their respective
HttpHost . |
static String |
AUTHSCHEME_REGISTRY
Attribute name of a
Lookup object that represents
the actual AuthSchemeFactory registry. |
static String |
COOKIE_ORIGIN
Attribute name of a
CookieOrigin
object that represents the actual details of the origin server. |
static String |
COOKIE_SPEC
Attribute name of a
CookieSpec
object that represents the actual cookie specification. |
static String |
COOKIE_STORE
Attribute name of a
CookieStore
object that represents the actual cookie store. |
static String |
COOKIESPEC_REGISTRY
Attribute name of a
Lookup object that represents
the actual CookieSpecFactory registry. |
static String |
CREDS_PROVIDER
Attribute name of a
CredentialsProvider
object that represents the actual credentials provider. |
static String |
HTTP_ROUTE
Attribute name of a
RouteInfo
object that represents the actual connection route. |
static String |
REDIRECT_LOCATIONS
Attribute name of a
RedirectLocations object that represents a collection of all
redirect locations received in the process of request execution. |
static String |
REQUEST_CONFIG
Attribute name of a
RequestConfig object that
represents the actual request configuration. |
static String |
USER_TOKEN
|
CONNECTION_ENDPOINT, HTTP_REQUEST, HTTP_RESPONSE, SSL_SESSION
RESERVED_PREFIX
Constructor and Description |
---|
HttpClientContext() |
HttpClientContext(HttpContext context) |
getAttribute, getAttribute, getEndpointDetails, getProtocolVersion, getRequest, getResponse, getSSLSession, removeAttribute, setAttribute, setProtocolVersion
public static final String AUTH_CACHE
AuthCache
object
that represents the auth scheme cache.public static final String AUTH_EXCHANGE_MAP
AuthExchange
s keyed by their respective
HttpHost
.public static final String AUTHSCHEME_REGISTRY
Lookup
object that represents
the actual AuthSchemeFactory
registry.public static final String COOKIE_ORIGIN
CookieOrigin
object that represents the actual details of the origin server.public static final String COOKIE_SPEC
CookieSpec
object that represents the actual cookie specification.public static final String COOKIE_STORE
CookieStore
object that represents the actual cookie store.public static final String COOKIESPEC_REGISTRY
Lookup
object that represents
the actual CookieSpecFactory
registry.public static final String CREDS_PROVIDER
CredentialsProvider
object that represents the actual credentials provider.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 REQUEST_CONFIG
RequestConfig
object that
represents the actual request configuration.public static final String USER_TOKEN
public HttpClientContext()
public HttpClientContext(HttpContext context)
public static HttpClientContext adapt(HttpContext context)
public static HttpClientContext create()
public AuthCache getAuthCache()
public AuthExchange getAuthExchange(HttpHost host)
public Map<HttpHost,AuthExchange> getAuthExchanges()
public Lookup<AuthSchemeFactory> getAuthSchemeRegistry()
public CookieOrigin getCookieOrigin()
public CookieSpec getCookieSpec()
public Lookup<CookieSpecFactory> getCookieSpecRegistry()
public CookieStore getCookieStore()
public CredentialsProvider getCredentialsProvider()
public RouteInfo getHttpRoute()
public RedirectLocations getRedirectLocations()
public RequestConfig getRequestConfig()
public Object getUserToken()
public <T> T getUserToken(Class<T> clazz)
public void resetAuthExchange(HttpHost host, AuthScheme authScheme)
public void setAuthCache(AuthCache authCache)
public void setAuthExchange(HttpHost host, AuthExchange authExchange)
public void setAuthSchemeRegistry(Lookup<AuthSchemeFactory> lookup)
public void setCookieSpecRegistry(Lookup<CookieSpecFactory> lookup)
public void setCookieStore(CookieStore cookieStore)
public void setCredentialsProvider(CredentialsProvider credentialsProvider)
public void setRequestConfig(RequestConfig config)
public void setUserToken(Object obj)