Package groovyx.net.http
Class HttpContextDecorator
java.lang.Object
groovyx.net.http.HttpContextDecorator
- All Implemented Interfaces:
org.apache.http.protocol.HttpContext
HttpContext stores many transient properties of an HTTP request.
This class adds Groovy convenience methods. For a list of many
common properties stored in the HttpContext, see:
ExecutionContext
ClientContext
-
Field Summary
FieldsFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGroovy support for the index [] operatorgetAttribute
(String name) removeAttribute
(String name) void
Groovy support for the index [] operatorvoid
setAttribute
(String name, Object val)
-
Field Details
-
delegate
protected org.apache.http.protocol.HttpContext delegate
-
-
Constructor Details
-
HttpContextDecorator
public HttpContextDecorator() -
HttpContextDecorator
public HttpContextDecorator(org.apache.http.protocol.HttpContext delegate)
-
-
Method Details
-
getAt
Groovy support for the index [] operator- Parameters:
name
-- Returns:
-
setAt
Groovy support for the index [] operator- Parameters:
name
-val
-
-
getAttribute
- Specified by:
getAttribute
in interfaceorg.apache.http.protocol.HttpContext
-
removeAttribute
- Specified by:
removeAttribute
in interfaceorg.apache.http.protocol.HttpContext
-
setAttribute
- Specified by:
setAttribute
in interfaceorg.apache.http.protocol.HttpContext
-