org.apache.http.protocol
Class BasicHttpContextHC4
java.lang.Object
org.apache.http.protocol.BasicHttpContextHC4
- All Implemented Interfaces:
- org.apache.http.protocol.HttpContext
@ThreadSafe
public class BasicHttpContextHC4
- extends java.lang.Object
- implements org.apache.http.protocol.HttpContext
Default implementation of HttpContext.
Please note instances of this class can be thread unsafe if the
parent context is not thread safe.
- Since:
- 4.0
| Fields inherited from interface org.apache.http.protocol.HttpContext |
RESERVED_PREFIX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicHttpContextHC4
public BasicHttpContextHC4()
BasicHttpContextHC4
public BasicHttpContextHC4(org.apache.http.protocol.HttpContext parentContext)
getAttribute
public java.lang.Object getAttribute(java.lang.String id)
- Specified by:
getAttribute in interface org.apache.http.protocol.HttpContext
setAttribute
public void setAttribute(java.lang.String id,
java.lang.Object obj)
- Specified by:
setAttribute in interface org.apache.http.protocol.HttpContext
removeAttribute
public java.lang.Object removeAttribute(java.lang.String id)
- Specified by:
removeAttribute in interface org.apache.http.protocol.HttpContext
clear
public void clear()
- Since:
- 4.2
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object