Package groovyx.net.http
Class HttpContextDecorator
- java.lang.Object
-
- groovyx.net.http.HttpContextDecorator
-
- All Implemented Interfaces:
org.apache.http.protocol.HttpContext
public class HttpContextDecorator extends java.lang.Object implements org.apache.http.protocol.HttpContextHttpContext 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:ExecutionContextClientContext
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.http.protocol.HttpContextdelegate
-
Constructor Summary
Constructors Constructor Description HttpContextDecorator()HttpContextDecorator(org.apache.http.protocol.HttpContext delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetAt(java.lang.String name)Groovy support for the index [] operatorjava.lang.ObjectgetAttribute(java.lang.String name)java.lang.ObjectremoveAttribute(java.lang.String name)voidsetAt(java.lang.String name, java.lang.Object val)Groovy support for the index [] operatorvoidsetAttribute(java.lang.String name, java.lang.Object val)
-
-
-
Method Detail
-
getAt
public java.lang.Object getAt(java.lang.String name)
Groovy support for the index [] operator- Parameters:
name-- Returns:
-
setAt
public void setAt(java.lang.String name, java.lang.Object val)Groovy support for the index [] operator- Parameters:
name-val-
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttributein interfaceorg.apache.http.protocol.HttpContext
-
removeAttribute
public java.lang.Object removeAttribute(java.lang.String name)
- Specified by:
removeAttributein interfaceorg.apache.http.protocol.HttpContext
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object val)- Specified by:
setAttributein interfaceorg.apache.http.protocol.HttpContext
-
-