org.apache.http.protocol
Interface HttpContext

All Known Implementing Classes:
HttpExecutionContext

public interface HttpContext

A context for executing a request. The context is used to tie together the request, the response, and optional application data. It is also used for internal data. Attribute names starting with the prefix "http." are reserved for internal data.

Since:
4.0
Version:
$Revision: 496070 $
Author:
Oleg Kalnichevski

Field Summary
static java.lang.String HTTP_CONNECTION
           
static java.lang.String HTTP_REQUEST
           
static java.lang.String HTTP_RESPONSE
           
static java.lang.String RESERVED_PREFIX
          The prefix reserved for use by HTTP components.
 
Method Summary
 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)
           
 

Field Detail

RESERVED_PREFIX

public static final java.lang.String RESERVED_PREFIX
The prefix reserved for use by HTTP components. "http."

See Also:
Constant Field Values

HTTP_CONNECTION

public static final java.lang.String HTTP_CONNECTION
See Also:
Constant Field Values

HTTP_REQUEST

public static final java.lang.String HTTP_REQUEST
See Also:
Constant Field Values

HTTP_RESPONSE

public static final java.lang.String HTTP_RESPONSE
See Also:
Constant Field Values
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String id)

setAttribute

public void setAttribute(java.lang.String id,
                         java.lang.Object obj)

removeAttribute

public java.lang.Object removeAttribute(java.lang.String id)


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.