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 |
AUTHSCHEME_REGISTRY
Attribute name of a
Lookup object that represents
the actual AuthSchemeProvider 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 CookieSpecProvider 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 |
PROXY_AUTH_STATE
Attribute name of a
AuthState
object that represents the actual proxy authentication state. |
static String |
REDIRECT_LOCATIONS
Attribute name of a
List 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 |
TARGET_AUTH_STATE
Attribute name of a
AuthState
object that represents the actual target authentication state. |
static String |
USER_TOKEN
|
HTTP_CONNECTION, HTTP_REQ_SENT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_TARGET_HOST
RESERVED_PREFIX
Constructor and Description |
---|
HttpClientContext() |
HttpClientContext(HttpContext context) |
getAttribute, getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, removeAttribute, setAttribute, setTargetHost
public static final String HTTP_ROUTE
RouteInfo
object that represents the actual connection route.public static final String REDIRECT_LOCATIONS
List
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 CookieSpecProvider
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 TARGET_AUTH_STATE
AuthState
object that represents the actual target authentication state.public static final String PROXY_AUTH_STATE
AuthState
object that represents the actual proxy authentication state.public static final String USER_TOKEN
public static final String AUTHSCHEME_REGISTRY
Lookup
object that represents
the actual AuthSchemeProvider
registry.public static final String REQUEST_CONFIG
RequestConfig
object that
represents the actual request configuration.public HttpClientContext(HttpContext context)
public HttpClientContext()
public static HttpClientContext adapt(HttpContext context)
public static HttpClientContext create()
public RouteInfo getHttpRoute()
public List<URI> getRedirectLocations()
public CookieStore getCookieStore()
public void setCookieStore(CookieStore cookieStore)
public CookieSpec getCookieSpec()
public CookieOrigin getCookieOrigin()
public Lookup<CookieSpecProvider> getCookieSpecRegistry()
public void setCookieSpecRegistry(Lookup<CookieSpecProvider> lookup)
public Lookup<AuthSchemeProvider> getAuthSchemeRegistry()
public void setAuthSchemeRegistry(Lookup<AuthSchemeProvider> lookup)
public CredentialsProvider getCredentialsProvider()
public void setCredentialsProvider(CredentialsProvider credentialsProvider)
public AuthCache getAuthCache()
public void setAuthCache(AuthCache authCache)
public AuthState getTargetAuthState()
public AuthState getProxyAuthState()
public <T> T getUserToken(Class<T> clazz)
public Object getUserToken()
public void setUserToken(Object obj)
public RequestConfig getRequestConfig()
public void setRequestConfig(RequestConfig config)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses