org.apache.http.protocol.HttpContext |
Known Indirect Subclasses |
HttpContext 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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | RESERVED_PREFIX | The prefix reserved for use by HTTP components. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains attribute with the given name.
| |||||||||||
Removes attribute with the given name from the context.
| |||||||||||
Sets value of the attribute with the given name.
|
The prefix reserved for use by HTTP components. "http."
Obtains attribute with the given name.
id | the attribute name. |
---|
null
if not set.
Removes attribute with the given name from the context.
id | the attribute name. |
---|
null
if not set.
Sets value of the attribute with the given name.
id | the attribute name. |
---|---|
obj | the attribute value. |