servletunit
Class HttpSessionSimulator
java.lang.Object
servletunit.HttpSessionSimulator
- public class HttpSessionSimulator
- extends java.lang.Object
This class simulates an HttpSession object. You can actually work with sessions. The simulation is done using a static
session object inside HttpServletRequest.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpSessionSimulator
public HttpSessionSimulator(ServletContext context)
getAttribute
public java.lang.Object getAttribute(java.lang.String s)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getAttributeNames
public java.util.Enumeration getAttributeNames()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getCreationTime
public long getCreationTime()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getId
public java.lang.String getId()
getLastAccessedTime
public long getLastAccessedTime()
getMaxInactiveInterval
public int getMaxInactiveInterval()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getSessionContext
public HttpSessionContext getSessionContext()
- This method is not supported.
getValue
public java.lang.Object getValue(java.lang.String s)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getValueNames
public java.lang.String[] getValueNames()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
invalidate
public void invalidate()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
isNew
public boolean isNew()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
putValue
public void putValue(java.lang.String s,
java.lang.Object obj)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
removeAttribute
public void removeAttribute(java.lang.String s)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
removeValue
public void removeValue(java.lang.String s)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
setAttribute
public void setAttribute(java.lang.String s,
java.lang.Object obj)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
setMaxInactiveInterval
public void setMaxInactiveInterval(int i)
getServletContext
public ServletContext getServletContext()
isValid
protected boolean isValid()
Copyright © Deryl Seale All Rights Reserved.