HttpContext.
Please note instances of this class can be thread unsafe if the parent context is not thread safe.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final HttpContext | |
| private ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | getAttribute(final String
the attribute name. id)Implements org. |
| public ProtocolVersion | getProtocolVersion()
Implements org. |
| public Object | removeAttribute(final String
the attribute name. id)Implements org. |
| public Object | setAttribute(final String
the attribute name. id, final Object the attribute value. obj)Implements org. |
| public void | setProtocolVersion(final ProtocolVersion version)
Implements org. |
| public String |
| map | back to summary |
|---|---|
| private final Map<String, Object> map | |
| parentContext | back to summary |
|---|---|
| private final HttpContext parentContext | |
| version | back to summary |
|---|---|
| private ProtocolVersion version | |
| BasicHttpContext | back to summary |
|---|---|
| public BasicHttpContext() | |
| BasicHttpContext | back to summary |
|---|---|
| public BasicHttpContext(final HttpContext parentContext) | |
| clear | back to summary |
|---|---|
public void clear()
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String id) Implements org. Doc from org. Obtains attribute with the given name. | |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org. Doc from org. Returns protocol version used in this context.
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String id) Implements org. Doc from org. Removes attribute with the given name from the context. | |
| setAttribute | back to summary |
|---|---|
| public Object setAttribute(final String id, final Object obj) Implements org. Doc from org. Sets value of the attribute with the given name. | |
| setProtocolVersion | back to summary |
|---|---|
| public void setProtocolVersion(final ProtocolVersion version) Implements org. Doc from org. Sets protocol version used in this context.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |