Class SharingHttpContext
java.lang.Object
org.apache.http.protocol.HttpCoreContext
org.apache.http.client.protocol.HttpClientContext
org.eclipse.aether.transport.http.SharingHttpContext
- All Implemented Interfaces:
org.apache.http.protocol.HttpContext
final class SharingHttpContext
extends org.apache.http.client.protocol.HttpClientContext
HTTP context that shares certain attributes among requests to optimize the communication with the server.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.http.client.protocol.HttpClientContext
AUTH_CACHE, AUTHSCHEME_REGISTRY, COOKIE_ORIGIN, COOKIE_SPEC, COOKIE_STORE, COOKIESPEC_REGISTRY, CREDS_PROVIDER, HTTP_ROUTE, PROXY_AUTH_STATE, REDIRECT_LOCATIONS, REQUEST_CONFIG, TARGET_AUTH_STATE, USER_TOKENFields inherited from class org.apache.http.protocol.HttpCoreContext
HTTP_CONNECTION, HTTP_REQ_SENT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_TARGET_HOSTFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String id) voidsetAttribute(String id, Object obj) Methods inherited from class org.apache.http.client.protocol.HttpClientContext
adapt, create, getAuthCache, getAuthSchemeRegistry, getCookieOrigin, getCookieSpec, getCookieSpecRegistry, getCookieStore, getCredentialsProvider, getHttpRoute, getProxyAuthState, getRedirectLocations, getRequestConfig, getTargetAuthState, getUserToken, getUserToken, setAuthCache, setAuthSchemeRegistry, setCookieSpecRegistry, setCookieStore, setCredentialsProvider, setRequestConfig, setUserTokenMethods inherited from class org.apache.http.protocol.HttpCoreContext
getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, setTargetHost
-
Field Details
-
state
-
-
Constructor Details
-
SharingHttpContext
SharingHttpContext(LocalState state)
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
getAttributein classorg.apache.http.protocol.HttpCoreContext
-
setAttribute
- Specified by:
setAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
setAttributein classorg.apache.http.protocol.HttpCoreContext
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
removeAttributein classorg.apache.http.protocol.HttpCoreContext
-