@ThreadSafe public class BasicHttpContext extends java.lang.Object implements HttpContext
HttpContext
.
Please note instances of this class can be thread unsafe if the parent context is not thread safe.
RESERVED_PREFIX
Constructor and Description |
---|
BasicHttpContext() |
BasicHttpContext(HttpContext parentContext) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
getAttribute(java.lang.String id)
Obtains attribute with the given name.
|
java.lang.Object |
removeAttribute(java.lang.String id)
Removes attribute with the given name from the context.
|
void |
setAttribute(java.lang.String id,
java.lang.Object obj)
Sets value of the attribute with the given name.
|
java.lang.String |
toString() |
public BasicHttpContext()
public BasicHttpContext(HttpContext parentContext)
public java.lang.Object getAttribute(java.lang.String id)
HttpContext
getAttribute
in interface HttpContext
id
- the attribute name.null
if not set.public void setAttribute(java.lang.String id, java.lang.Object obj)
HttpContext
setAttribute
in interface HttpContext
id
- the attribute name.obj
- the attribute value.public java.lang.Object removeAttribute(java.lang.String id)
HttpContext
removeAttribute
in interface HttpContext
id
- the attribute name.null
if not set.public void clear()
public java.lang.String toString()
toString
in class java.lang.Object