Package org.apache.http.protocol
Class DefaultedHttpContext
java.lang.Object
org.apache.http.protocol.DefaultedHttpContext
- All Implemented Interfaces:
HttpContext
public final class DefaultedHttpContext extends Object implements HttpContext
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.- Version:
- $Revision: 654882 $
- Author:
- Oleg Kalnichevski
-
Field Summary
Fields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
Constructors Constructor Description DefaultedHttpContext(HttpContext local, HttpContext defaults) -
Method Summary
Modifier and Type Method Description ObjectgetAttribute(String id)HttpContextgetDefaults()ObjectremoveAttribute(String id)voidsetAttribute(String id, Object obj)
-
Constructor Details
-
DefaultedHttpContext
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceHttpContext
-
removeAttribute
- Specified by:
removeAttributein interfaceHttpContext
-
setAttribute
- Specified by:
setAttributein interfaceHttpContext
-
getDefaults
-