Class SharingHttpContext
- java.lang.Object
-
- org.apache.http.protocol.BasicHttpContext
-
- org.eclipse.aether.transport.http.SharingHttpContext
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.http.protocol.HttpContext
final class SharingHttpContext extends org.apache.http.protocol.BasicHttpContext implements java.io.Closeable
HTTP context that shares certain attributes among requests to optimize the communication with the server.- See Also:
- Stateful HTTP connections
-
-
Field Summary
Fields Modifier and Type Field Description private SharingAuthCache
authCache
private LocalState
state
-
Constructor Summary
Constructors Constructor Description SharingHttpContext(LocalState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.Object
getAttribute(java.lang.String id)
java.lang.Object
removeAttribute(java.lang.String id)
void
setAttribute(java.lang.String id, java.lang.Object obj)
-
-
-
Field Detail
-
state
private final LocalState state
-
authCache
private final SharingAuthCache authCache
-
-
Constructor Detail
-
SharingHttpContext
SharingHttpContext(LocalState state)
-
-
Method Detail
-
getAttribute
public java.lang.Object getAttribute(java.lang.String id)
- Specified by:
getAttribute
in interfaceorg.apache.http.protocol.HttpContext
- Overrides:
getAttribute
in classorg.apache.http.protocol.BasicHttpContext
-
setAttribute
public void setAttribute(java.lang.String id, java.lang.Object obj)
- Specified by:
setAttribute
in interfaceorg.apache.http.protocol.HttpContext
- Overrides:
setAttribute
in classorg.apache.http.protocol.BasicHttpContext
-
removeAttribute
public java.lang.Object removeAttribute(java.lang.String id)
- Specified by:
removeAttribute
in interfaceorg.apache.http.protocol.HttpContext
- Overrides:
removeAttribute
in classorg.apache.http.protocol.BasicHttpContext
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-