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
|
从类 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