groovyx.net.http
Class HttpContextDecorator

java.lang.Object
  extended by groovyx.net.http.HttpContextDecorator
All Implemented Interfaces:
org.apache.http.protocol.HttpContext

public class HttpContextDecorator
extends Object
implements 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:

Author:
tnichols

Field Summary
protected  org.apache.http.protocol.HttpContext delegate
           
 
Fields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX
 
Constructor Summary
HttpContextDecorator()
           
HttpContextDecorator(org.apache.http.protocol.HttpContext delegate)
           
 
Method Summary
 Object getAt(String name)
          Groovy support for the index [] operator
 Object getAttribute(String name)
           
 Object removeAttribute(String name)
           
 void setAt(String name, Object val)
          Groovy support for the index [] operator
 void setAttribute(String name, Object val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected org.apache.http.protocol.HttpContext delegate
Constructor Detail

HttpContextDecorator

public HttpContextDecorator()

HttpContextDecorator

public HttpContextDecorator(org.apache.http.protocol.HttpContext delegate)
Method Detail

getAt

public Object getAt(String name)
Groovy support for the index [] operator

Parameters:
name -
Returns:

setAt

public void setAt(String name,
                  Object val)
Groovy support for the index [] operator

Parameters:
name -
val -

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface org.apache.http.protocol.HttpContext

removeAttribute

public Object removeAttribute(String name)
Specified by:
removeAttribute in interface org.apache.http.protocol.HttpContext

setAttribute

public void setAttribute(String name,
                         Object val)
Specified by:
setAttribute in interface org.apache.http.protocol.HttpContext


Copyright © 2008-2012. All Rights Reserved.