@Deprecated @Contract(threading=SAFE_CONDITIONAL) public class BasicHttpContext extends Object implements HttpContext
HttpContext
.
Please note instances of this class can be thread unsafe if the parent context is not thread safe.
RESERVED_PREFIX
Constructor and Description |
---|
BasicHttpContext()
Deprecated.
|
BasicHttpContext(HttpContext parentContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
|
Object |
getAttribute(String id)
Deprecated.
Obtains attribute with the given name.
|
ProtocolVersion |
getProtocolVersion()
Deprecated.
Returns protocol version used in this context.
|
Object |
removeAttribute(String id)
Deprecated.
Removes attribute with the given name from the context.
|
Object |
setAttribute(String id,
Object obj)
Deprecated.
Sets value of the attribute with the given name.
|
void |
setProtocolVersion(ProtocolVersion version)
Deprecated.
Sets protocol version used in this context.
|
String |
toString()
Deprecated.
|
public BasicHttpContext()
public BasicHttpContext(HttpContext parentContext)
public Object getAttribute(String id)
HttpContext
getAttribute
in interface HttpContext
id
- the attribute name.null
if not set.public Object setAttribute(String id, Object obj)
HttpContext
setAttribute
in interface HttpContext
id
- the attribute name.obj
- the attribute value.id
, or
null
if there was no mapping for id
.public Object removeAttribute(String id)
HttpContext
removeAttribute
in interface HttpContext
id
- the attribute name.null
if not set.public ProtocolVersion getProtocolVersion()
HttpContext
getProtocolVersion
in interface HttpContext
public void setProtocolVersion(ProtocolVersion version)
HttpContext
setProtocolVersion
in interface HttpContext
public void clear()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.