org.apache.http.protocol
Class BasicHttpContextHC4

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX
 
Constructor Summary
BasicHttpContextHC4()
           
BasicHttpContextHC4(org.apache.http.protocol.HttpContext parentContext)
           
 
Method Summary
 void clear()
           
 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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicHttpContextHC4

public BasicHttpContextHC4()

BasicHttpContextHC4

public BasicHttpContextHC4(org.apache.http.protocol.HttpContext parentContext)
Method Detail

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