|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.protocol.DefaultedHttpContext
@Deprecated public final class DefaultedHttpContext
HttpContext
implementation that delegates resolution of an attribute
to the given default HttpContext
instance if the attribute is not
present in the local one. The state of the local context can be mutated,
whereas the default context is treated as read-only.
Field Summary |
---|
Fields inherited from interface org.apache.http.protocol.HttpContext |
---|
RESERVED_PREFIX |
Constructor Summary | |
---|---|
DefaultedHttpContext(HttpContext local,
HttpContext defaults)
Deprecated. |
Method Summary | |
---|---|
Object |
getAttribute(String id)
Deprecated. Obtains attribute with the given name. |
HttpContext |
getDefaults()
Deprecated. |
Object |
removeAttribute(String id)
Deprecated. Removes attribute with the given name from the context. |
void |
setAttribute(String id,
Object obj)
Deprecated. Sets value of the attribute with the given name. |
String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultedHttpContext(HttpContext local, HttpContext defaults)
Method Detail |
---|
public Object getAttribute(String id)
HttpContext
getAttribute
in interface HttpContext
id
- the attribute name.
null
if not set.public Object removeAttribute(String id)
HttpContext
removeAttribute
in interface HttpContext
id
- the attribute name.
null
if not set.public void setAttribute(String id, Object obj)
HttpContext
setAttribute
in interface HttpContext
id
- the attribute name.obj
- the attribute value.public HttpContext getDefaults()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |