@NotThreadSafe public class BasicHttpContext extends Object implements HttpContext
HttpContext.
Please note methods of this class are not synchronized and therefore may be threading unsafe.
RESERVED_PREFIX| Constructor and Description |
|---|
BasicHttpContext() |
BasicHttpContext(HttpContext parentContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
getAttribute(String id)
Obtains attribute with the given name.
|
Object |
removeAttribute(String id)
Removes attribute with the given name from the context.
|
void |
setAttribute(String id,
Object obj)
Sets value of the attribute with the given name.
|
String |
toString() |
public BasicHttpContext()
public BasicHttpContext(HttpContext parentContext)
public Object getAttribute(String id)
HttpContextgetAttribute in interface HttpContextid - the attribute name.null if not set.public void setAttribute(String id, Object obj)
HttpContextsetAttribute in interface HttpContextid - the attribute name.obj - the attribute value.public Object removeAttribute(String id)
HttpContextremoveAttribute in interface HttpContextid - the attribute name.null if not set.public void clear()
Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.