|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.chwf.servlet.mock.MockSession
Mock servlet session.
Constructor Summary | |
MockSession()
|
Method Summary | |
static void |
clearSession()
MOCK METHOD: Clear session. |
java.lang.Object |
getAttribute(java.lang.String name)
Get attribute |
java.util.Enumeration |
getAttributeNames()
Attributes names |
long |
getCreationTime()
Unsupported |
java.lang.String |
getId()
Unsupported |
long |
getLastAccessedTime()
Unsupported |
int |
getMaxInactiveInterval()
Unsupported |
javax.servlet.ServletContext |
getServletContext()
Unsupported |
static MockSession |
getSession()
MOCK METHOD: Factory for mock session. |
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
java.lang.Object |
getValue(java.lang.String name)
Deprecated. |
java.lang.String[] |
getValueNames()
Deprecated. |
void |
invalidate()
Clears session. |
boolean |
isNew()
Unsupported |
void |
putValue(java.lang.String name,
java.lang.Object value)
Deprecated. |
void |
removeAttribute(java.lang.String name)
Remove attribute |
void |
removeValue(java.lang.String name)
Deprecated. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set attribute |
void |
setMaxInactiveInterval(int arg0)
Unsupported |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MockSession()
Method Detail |
public static MockSession getSession()
public static void clearSession()
public long getCreationTime()
getCreationTime
in interface javax.servlet.http.HttpSession
HttpSession.getCreationTime()
public java.lang.String getId()
getId
in interface javax.servlet.http.HttpSession
HttpSession.getId()
public long getLastAccessedTime()
getLastAccessedTime
in interface javax.servlet.http.HttpSession
HttpSession.getLastAccessedTime()
public javax.servlet.ServletContext getServletContext()
HttpSession
public void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval
in interface javax.servlet.http.HttpSession
arg0
- HttpSession.setMaxInactiveInterval(int)
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface javax.servlet.http.HttpSession
HttpSession.getMaxInactiveInterval()
public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext
in interface javax.servlet.http.HttpSession
HttpSession.getSessionContext()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.http.HttpSession
name
- nameHttpSession.getAttribute(String)
public java.lang.Object getValue(java.lang.String name)
getValue
in interface javax.servlet.http.HttpSession
name
- nameHttpSession.getValue(String)
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.servlet.http.HttpSession
HttpSession.getAttributeNames()
public java.lang.String[] getValueNames()
getValueNames
in interface javax.servlet.http.HttpSession
HttpSession.getValueNames()
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.servlet.http.HttpSession
name
- namevalue
- valueHttpSession.setAttribute(String, Object)
public void putValue(java.lang.String name, java.lang.Object value)
putValue
in interface javax.servlet.http.HttpSession
name
- namevalue
- valueHttpSession.putValue(String, Object)
public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.http.HttpSession
name
- nameHttpSession.removeAttribute(String)
public void removeValue(java.lang.String name)
removeValue
in interface javax.servlet.http.HttpSession
name
- nameHttpSession.removeValue(String)
public void invalidate()
invalidate
in interface javax.servlet.http.HttpSession
HttpSession.invalidate()
public boolean isNew()
isNew
in interface javax.servlet.http.HttpSession
HttpSession.isNew()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |