org.apache.tapestry.test.mock
Class MockSession
java.lang.Object
org.apache.tapestry.test.mock.AttributeHolder
org.apache.tapestry.test.mock.MockSession
- All Implemented Interfaces:
- HttpSession
public class MockSession
- extends AttributeHolder
- implements HttpSession
Mock implementation of HttpSession
.
- 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 |
MockSession
public MockSession(MockContext context,
String id)
getCreationTime
public long getCreationTime()
- Specified by:
getCreationTime
in interface HttpSession
getId
public String getId()
- Specified by:
getId
in interface HttpSession
getLastAccessedTime
public long getLastAccessedTime()
- Specified by:
getLastAccessedTime
in interface HttpSession
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContext
in interface HttpSession
setMaxInactiveInterval
public void setMaxInactiveInterval(int arg0)
- Specified by:
setMaxInactiveInterval
in interface HttpSession
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveInterval
in interface HttpSession
getSessionContext
public HttpSessionContext getSessionContext()
- Specified by:
getSessionContext
in interface HttpSession
getValue
public Object getValue(String name)
- Specified by:
getValue
in interface HttpSession
getValueNames
public String[] getValueNames()
- Specified by:
getValueNames
in interface HttpSession
putValue
public void putValue(String name,
Object value)
- Specified by:
putValue
in interface HttpSession
removeValue
public void removeValue(String name)
- Specified by:
removeValue
in interface HttpSession
invalidate
public void invalidate()
- Specified by:
invalidate
in interface HttpSession
isNew
public boolean isNew()
- Specified by:
isNew
in interface HttpSession
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute
in interface HttpSession
- Overrides:
setAttribute
in class AttributeHolder
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.