Class SharingHttpContext
java.lang.Object
org.apache.http.protocol.BasicHttpContext
org.eclipse.aether.transport.http.SharingHttpContext
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.http.protocol.HttpContext
final class SharingHttpContext
extends org.apache.http.protocol.BasicHttpContext
implements Closeable
HTTP context that shares certain attributes among requests to optimize the communication with the server.
- See Also:
-
Field Summary
FieldsFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAttribute(String id) voidsetAttribute(String id, Object obj) Methods inherited from class org.apache.http.protocol.BasicHttpContext
clear, toString
-
Field Details
-
state
-
authCache
-
-
Constructor Details
-
SharingHttpContext
SharingHttpContext(LocalState state)
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
getAttributein classorg.apache.http.protocol.BasicHttpContext
-
setAttribute
- Specified by:
setAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
setAttributein classorg.apache.http.protocol.BasicHttpContext
-
removeAttribute
- Specified by:
removeAttributein interfaceorg.apache.http.protocol.HttpContext- Overrides:
removeAttributein classorg.apache.http.protocol.BasicHttpContext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-