@Deprecated public final class DefaultedHttpContext extends java.lang.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| 构造器和说明 |
|---|
DefaultedHttpContext(HttpContext local,
HttpContext defaults)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
getAttribute(java.lang.String id)
已过时。
Obtains attribute with the given name.
|
HttpContext |
getDefaults()
已过时。
|
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 DefaultedHttpContext(HttpContext local, HttpContext defaults)
public java.lang.Object getAttribute(java.lang.String id)
HttpContextgetAttribute 在接口中 HttpContextid - the attribute name.null if not set.public java.lang.Object removeAttribute(java.lang.String id)
HttpContextremoveAttribute 在接口中 HttpContextid - the attribute name.null if not set.public void setAttribute(java.lang.String id,
java.lang.Object obj)
HttpContextsetAttribute 在接口中 HttpContextid - the attribute name.obj - the attribute value.public HttpContext getDefaults()
public java.lang.String toString()
toString 在类中 java.lang.Object