Package org.apache.http.impl.nio
Class SessionHttpContext
java.lang.Object
org.apache.http.impl.nio.SessionHttpContext
- All Implemented Interfaces:
HttpContext
-
Field Summary
FieldsFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String id) Obtains attribute with the given name.Removes attribute with the given name from the context.void
setAttribute
(String id, Object obj) Sets value of the attribute with the given name.toString()
-
Field Details
-
ioSession
-
-
Constructor Details
-
SessionHttpContext
-
-
Method Details
-
getAttribute
Description copied from interface:HttpContext
Obtains attribute with the given name.- Specified by:
getAttribute
in interfaceHttpContext
- Parameters:
id
- the attribute name.- Returns:
- attribute value, or
null
if not set.
-
removeAttribute
Description copied from interface:HttpContext
Removes attribute with the given name from the context.- Specified by:
removeAttribute
in interfaceHttpContext
- Parameters:
id
- the attribute name.- Returns:
- attribute value, or
null
if not set.
-
setAttribute
Description copied from interface:HttpContext
Sets value of the attribute with the given name.- Specified by:
setAttribute
in interfaceHttpContext
- Parameters:
id
- the attribute name.obj
- the attribute value.
-
toString
-