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.voidsetAttribute(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:HttpContextObtains attribute with the given name.- Specified by:
getAttributein interfaceHttpContext- Parameters:
id- the attribute name.- Returns:
- attribute value, or
nullif not set.
-
removeAttribute
Description copied from interface:HttpContextRemoves attribute with the given name from the context.- Specified by:
removeAttributein interfaceHttpContext- Parameters:
id- the attribute name.- Returns:
- attribute value, or
nullif not set.
-
setAttribute
Description copied from interface:HttpContextSets value of the attribute with the given name.- Specified by:
setAttributein interfaceHttpContext- Parameters:
id- the attribute name.obj- the attribute value.
-
toString
-