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 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 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.