@Deprecated 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.RESERVED_PREFIX| Constructor and Description |
|---|
DefaultedHttpContext(HttpContext local,
HttpContext defaults)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public DefaultedHttpContext(HttpContext local, HttpContext defaults)
public Object getAttribute(String id)
HttpContextgetAttribute in interface HttpContextid - the attribute name.null if not set.public Object removeAttribute(String id)
HttpContextremoveAttribute 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 HttpContext getDefaults()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.