Home » HttpComponents-Core-4.0.1 » org.apache.http.protocol » [javadoc | source]
public interface: HttpContext [javadoc | source]

All Known Implementing Classes:
    BasicHttpContext, DefaultedHttpContext, HttpExecutionContext, SyncBasicHttpContext

HttpCotext represents execution state of an HTTP process. It is a structure that can be used to map an attribute name to an attribute value. Internally HTTP context implementations are usually backed by a HashMap .

The primary purpose of the HTTP context is to facilitate information sharing among various logically related components. HTTP context can be used to store a processing state for one message or several consecutive messages. Multiple logically related messages can participate in a logical session if the same context is reused between consecutive messages.

Field Summary
public static final  String RESERVED_PREFIX    The prefix reserved for use by HTTP components. "http." 
Method from org.apache.http.protocol.HttpContext Summary:
getAttribute,   removeAttribute,   setAttribute
Method from org.apache.http.protocol.HttpContext Detail:
 public Object getAttribute(String id)
    Obtains attribute with the given name.
 public Object removeAttribute(String id)
    Removes attribute with the given name from the context.
 public  void setAttribute(String id,
    Object obj)
    Sets value of the attribute with the given name.