org.apache.tapestry.test.mock
Class AttributeHolder

java.lang.Object
  extended by org.apache.tapestry.test.mock.AttributeHolder
Direct Known Subclasses:
MockContext, MockRequest, MockSession

public class AttributeHolder
extends Object

Base class for holders of named attributes such as HttpSession, HttpServletRequest and ServletContext.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
AttributeHolder()
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 String[] getAttributeNamesArray()
           
protected  Enumeration getEnumeration(Map map)
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void simulateFailover()
          Serializes and then deserializes the Map containing all attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeHolder

public AttributeHolder()
Method Detail

getAttribute

public Object getAttribute(String name)

getAttributeNames

public Enumeration getAttributeNames()

getEnumeration

protected Enumeration getEnumeration(Map map)

getAttributeNamesArray

public String[] getAttributeNamesArray()

setAttribute

public void setAttribute(String name,
                         Object value)

removeAttribute

public void removeAttribute(String name)

simulateFailover

public void simulateFailover()
Serializes and then deserializes the Map containing all attributes.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.