info.magnolia.context
Class RequestAttributeStrategy

java.lang.Object
  extended by info.magnolia.context.RequestAttributeStrategy
All Implemented Interfaces:
AttributeStrategy

public class RequestAttributeStrategy
extends Object
implements AttributeStrategy

An AttributeStrategy which delegates to the given WebContext's request.


Constructor Summary
RequestAttributeStrategy(WebContext ctx)
           
 
Method Summary
 Object getAttribute(String name, int scope)
           
 Map getAttributes(int scope)
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 void removeAttribute(String name, int scope)
           
 void setAttribute(String name, Object value, int scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeStrategy

public RequestAttributeStrategy(WebContext ctx)
Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

getAttribute

public Object getAttribute(String name,
                           int scope)
Specified by:
getAttribute in interface AttributeStrategy

getAttributes

public Map getAttributes(int scope)
Specified by:
getAttributes in interface AttributeStrategy

removeAttribute

public void removeAttribute(String name,
                            int scope)
Specified by:
removeAttribute in interface AttributeStrategy

setAttribute

public void setAttribute(String name,
                         Object value,
                         int scope)
Specified by:
setAttribute in interface AttributeStrategy


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.