test.org.hccp.net
Class MockHttpSession

java.lang.Object
  |
  +--test.org.hccp.net.MockHttpSession

public class MockHttpSession
extends java.lang.Object

Mock implement of javax.servlet.http.HttpSession


Constructor Summary
MockHttpSession()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String s)
           
 java.util.Enumeration getAttributeNames()
           
 long getCreationTime()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 ServletContext getServletContext()
           
 HttpSessionContext getSessionContext()
          Deprecated.  
 java.lang.Object getValue(java.lang.String s)
          Deprecated.  
 java.lang.String[] getValueNames()
          Deprecated.  
 void invalidate()
           
 boolean isNew()
           
 void putValue(java.lang.String s, java.lang.Object o)
          Deprecated.  
 void removeAttribute(java.lang.String s)
           
 void removeValue(java.lang.String s)
          Deprecated.  
 void setAttribute(java.lang.String s, java.lang.Object o)
           
 void setMaxInactiveInterval(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpSession

public MockHttpSession()
Method Detail

getCreationTime

public long getCreationTime()

getId

public java.lang.String getId()

getLastAccessedTime

public long getLastAccessedTime()

getServletContext

public ServletContext getServletContext()

setMaxInactiveInterval

public void setMaxInactiveInterval(int i)

getMaxInactiveInterval

public int getMaxInactiveInterval()

getSessionContext

public HttpSessionContext getSessionContext()
Deprecated.  


getAttribute

public java.lang.Object getAttribute(java.lang.String s)

getValue

public java.lang.Object getValue(java.lang.String s)
Deprecated.  


getAttributeNames

public java.util.Enumeration getAttributeNames()

getValueNames

public java.lang.String[] getValueNames()
Deprecated.  


setAttribute

public void setAttribute(java.lang.String s,
                         java.lang.Object o)

putValue

public void putValue(java.lang.String s,
                     java.lang.Object o)
Deprecated.  


removeAttribute

public void removeAttribute(java.lang.String s)

removeValue

public void removeValue(java.lang.String s)
Deprecated.  


invalidate

public void invalidate()

isNew

public boolean isNew()