Class SyncBasicHttpContext

  • All Implemented Interfaces:
    HttpContext

    @Deprecated
    public class SyncBasicHttpContext
    extends BasicHttpContext
    Deprecated.
    (4.2) HttpContext instances may not be shared by multiple threads
    Thread-safe extension of the BasicHttpContext.
    Since:
    4.0
    • Constructor Detail

      • SyncBasicHttpContext

        public SyncBasicHttpContext​(HttpContext parentContext)
        Deprecated.
      • SyncBasicHttpContext

        public SyncBasicHttpContext()
        Deprecated.
        Since:
        4.2
    • Method Detail

      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String id)
        Deprecated.
        Description copied from interface: HttpContext
        Obtains attribute with the given name.
        Specified by:
        getAttribute in interface HttpContext
        Overrides:
        getAttribute in class BasicHttpContext
        Parameters:
        id - the attribute name.
        Returns:
        attribute value, or null if not set.
      • setAttribute

        public void setAttribute​(java.lang.String id,
                                 java.lang.Object obj)
        Deprecated.
        Description copied from interface: HttpContext
        Sets value of the attribute with the given name.
        Specified by:
        setAttribute in interface HttpContext
        Overrides:
        setAttribute in class BasicHttpContext
        Parameters:
        id - the attribute name.
        obj - the attribute value.
      • removeAttribute

        public java.lang.Object removeAttribute​(java.lang.String id)
        Deprecated.
        Description copied from interface: HttpContext
        Removes attribute with the given name from the context.
        Specified by:
        removeAttribute in interface HttpContext
        Overrides:
        removeAttribute in class BasicHttpContext
        Parameters:
        id - the attribute name.
        Returns:
        attribute value, or null if not set.