|
|||||||||
| 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.HttpSessionHttpSession.getCreationTime()public java.lang.String getId()
getId in interface javax.servlet.http.HttpSessionHttpSession.getId()public long getLastAccessedTime()
getLastAccessedTime in interface javax.servlet.http.HttpSessionHttpSession.getLastAccessedTime()public javax.servlet.ServletContext getServletContext()
HttpSessionpublic void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionarg0 - HttpSession.setMaxInactiveInterval(int)public int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionHttpSession.getMaxInactiveInterval()public javax.servlet.http.HttpSessionContext getSessionContext()
getSessionContext in interface javax.servlet.http.HttpSessionHttpSession.getSessionContext()public java.lang.Object getAttribute(java.lang.String name)
getAttribute in interface javax.servlet.http.HttpSessionname - nameHttpSession.getAttribute(String)public java.lang.Object getValue(java.lang.String name)
getValue in interface javax.servlet.http.HttpSessionname - nameHttpSession.getValue(String)public java.util.Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionHttpSession.getAttributeNames()public java.lang.String[] getValueNames()
getValueNames in interface javax.servlet.http.HttpSessionHttpSession.getValueNames()
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface javax.servlet.http.HttpSessionname - namevalue - valueHttpSession.setAttribute(String, Object)
public void putValue(java.lang.String name,
java.lang.Object value)
putValue in interface javax.servlet.http.HttpSessionname - namevalue - valueHttpSession.putValue(String, Object)public void removeAttribute(java.lang.String name)
removeAttribute in interface javax.servlet.http.HttpSessionname - nameHttpSession.removeAttribute(String)public void removeValue(java.lang.String name)
removeValue in interface javax.servlet.http.HttpSessionname - nameHttpSession.removeValue(String)public void invalidate()
invalidate in interface javax.servlet.http.HttpSessionHttpSession.invalidate()public boolean isNew()
isNew in interface javax.servlet.http.HttpSessionHttpSession.isNew()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||