org.nutz.mock.servlet
类 MockHttpSession

java.lang.Object
  继承者 org.nutz.mock.servlet.MockHttpSession
所有已实现的接口:
javax.servlet.http.HttpSession

public class MockHttpSession
extends java.lang.Object
implements javax.servlet.http.HttpSession


字段摘要
protected  java.util.Map<java.lang.String,java.lang.Object> attributeMap
           
protected  javax.servlet.ServletContext servletContext
           
 
构造方法摘要
MockHttpSession(MockServletContext servletContext)
           
 
方法摘要
 java.lang.Object getAttribute(java.lang.String key)
           
 java.util.Enumeration<java.lang.String> getAttributeNames()
           
 long getCreationTime()
           
 java.lang.String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
          已过时。  
 java.lang.Object getValue(java.lang.String arg0)
           
 java.lang.String[] getValueNames()
           
 void invalidate()
           
 boolean isNew()
           
 void putValue(java.lang.String arg0, java.lang.Object arg1)
           
 void removeAttribute(java.lang.String key)
           
 void removeValue(java.lang.String arg0)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
           
 void setMaxInactiveInterval(int arg0)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

servletContext

protected javax.servlet.ServletContext servletContext

attributeMap

protected java.util.Map<java.lang.String,java.lang.Object> attributeMap
构造方法详细信息

MockHttpSession

public MockHttpSession(MockServletContext servletContext)
方法详细信息

removeAttribute

public void removeAttribute(java.lang.String key)
指定者:
接口 javax.servlet.http.HttpSession 中的 removeAttribute

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
指定者:
接口 javax.servlet.http.HttpSession 中的 setAttribute

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
指定者:
接口 javax.servlet.http.HttpSession 中的 getAttribute

getCreationTime

public long getCreationTime()
指定者:
接口 javax.servlet.http.HttpSession 中的 getCreationTime

getId

public java.lang.String getId()
指定者:
接口 javax.servlet.http.HttpSession 中的 getId

getLastAccessedTime

public long getLastAccessedTime()
指定者:
接口 javax.servlet.http.HttpSession 中的 getLastAccessedTime

getMaxInactiveInterval

public int getMaxInactiveInterval()
指定者:
接口 javax.servlet.http.HttpSession 中的 getMaxInactiveInterval

getServletContext

public javax.servlet.ServletContext getServletContext()
指定者:
接口 javax.servlet.http.HttpSession 中的 getServletContext

getValue

public java.lang.Object getValue(java.lang.String arg0)
指定者:
接口 javax.servlet.http.HttpSession 中的 getValue

getValueNames

public java.lang.String[] getValueNames()
指定者:
接口 javax.servlet.http.HttpSession 中的 getValueNames

invalidate

public void invalidate()
指定者:
接口 javax.servlet.http.HttpSession 中的 invalidate

isNew

public boolean isNew()
指定者:
接口 javax.servlet.http.HttpSession 中的 isNew

putValue

public void putValue(java.lang.String arg0,
                     java.lang.Object arg1)
指定者:
接口 javax.servlet.http.HttpSession 中的 putValue

removeValue

public void removeValue(java.lang.String arg0)
指定者:
接口 javax.servlet.http.HttpSession 中的 removeValue

setMaxInactiveInterval

public void setMaxInactiveInterval(int arg0)
指定者:
接口 javax.servlet.http.HttpSession 中的 setMaxInactiveInterval

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
指定者:
接口 javax.servlet.http.HttpSession 中的 getAttributeNames

getSessionContext

public javax.servlet.http.HttpSessionContext getSessionContext()
已过时。 

指定者:
接口 javax.servlet.http.HttpSession 中的 getSessionContext