org.opencms.flex
Class TestCmsFlexResponse.RequestStub

java.lang.Object
  extended by org.opencms.flex.TestCmsFlexResponse.RequestStub
Enclosing class:
TestCmsFlexResponse

public static class TestCmsFlexResponse.RequestStub
extends Object

A partial implementation of HttpServletRequest which allows for the setting and getting of request attributes.


Constructor Summary
TestCmsFlexResponse.RequestStub()
           
 
Method Summary
 Object getAttribute(String name)
          Returns the named attribute value.
 void removeAttribute(String name)
          Removes the named attribute.
 void setAttribute(String name, Object value)
          Sets the named attribute to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCmsFlexResponse.RequestStub

public TestCmsFlexResponse.RequestStub()
Method Detail

getAttribute

public Object getAttribute(String name)
Returns the named attribute value.

Parameters:
name - the name of the attribute to return
Returns:
the value of the attribute

removeAttribute

public void removeAttribute(String name)
Removes the named attribute.

Parameters:
name - the name of the attribute to remove

setAttribute

public void setAttribute(String name,
                         Object value)
Sets the named attribute to the given value.

Parameters:
name - the name of the attribute to set
value - the value to set