org.apache.tapestry.test.mock
Class AttributeHolder
java.lang.Object
org.apache.tapestry.test.mock.AttributeHolder
- Direct Known Subclasses:
- MockContext, MockRequest, MockSession
- public class AttributeHolder
- extends java.lang.Object
Base class for holders of named attributes such as
HttpSession
,
HttpServletRequest
and ServletContext
.
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeHolder
public AttributeHolder()
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
getAttributeNames
public java.util.Enumeration getAttributeNames()
getEnumeration
protected java.util.Enumeration getEnumeration(java.util.Map map)
getAttributeNamesArray
public java.lang.String[] getAttributeNamesArray()
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
removeAttribute
public void removeAttribute(java.lang.String name)
simulateFailover
public void simulateFailover()
- Serializes and then deserializes the
Map
containing all attributes.