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 Details

  • Constructor Details

    • SharingHttpContext

      SharingHttpContext(LocalState state)
  • Method Details

    • getAttribute

      public Object getAttribute(String id)
      Specified by:
      getAttribute in interface org.apache.http.protocol.HttpContext
      Overrides:
      getAttribute in class org.apache.http.protocol.BasicHttpContext
    • setAttribute

      public void setAttribute(String id, Object obj)
      Specified by:
      setAttribute in interface org.apache.http.protocol.HttpContext
      Overrides:
      setAttribute in class org.apache.http.protocol.BasicHttpContext
    • removeAttribute

      public Object removeAttribute(String id)
      Specified by:
      removeAttribute in interface org.apache.http.protocol.HttpContext
      Overrides:
      removeAttribute in class org.apache.http.protocol.BasicHttpContext
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable