groovyx.net.http
Class HttpContextDecorator
java.lang.Object
groovyx.net.http.HttpContextDecorator
- All Implemented Interfaces:
- HttpContext
public class HttpContextDecorator
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected HttpContext delegate
HttpContextDecorator
public HttpContextDecorator()
HttpContextDecorator
public HttpContextDecorator(HttpContext delegate)
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 HttpContext
removeAttribute
public Object removeAttribute(String name)
- Specified by:
removeAttribute in interface HttpContext
setAttribute
public void setAttribute(String name,
Object val)
- Specified by:
setAttribute in interface HttpContext
Copyright © 2008-2011. All Rights Reserved.