public class MockHttpSession extends Object implements HttpSession
| Constructor and Description |
|---|
MockHttpSession() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String arg0) |
Enumeration |
getAttributeNames() |
long |
getCreationTime() |
String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
ServletContext |
getServletContext() |
HttpSessionContext |
getSessionContext() |
Object |
getValue(String arg0) |
String[] |
getValueNames() |
void |
invalidate() |
boolean |
isNew() |
void |
putValue(String arg0,
Object arg1) |
void |
removeAttribute(String arg0) |
void |
removeValue(String arg0) |
void |
setAttribute(String arg0,
Object arg1) |
void |
setMaxInactiveInterval(int arg0) |
public Object getAttribute(String arg0)
getAttribute in interface HttpSessionpublic Enumeration getAttributeNames()
getAttributeNames in interface HttpSessionpublic long getCreationTime()
getCreationTime in interface HttpSessionpublic String getId()
getId in interface HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessionpublic ServletContext getServletContext()
getServletContext in interface HttpSessionpublic HttpSessionContext getSessionContext()
getSessionContext in interface HttpSessionpublic Object getValue(String arg0)
getValue in interface HttpSessionpublic String[] getValueNames()
getValueNames in interface HttpSessionpublic void invalidate()
invalidate in interface HttpSessionpublic boolean isNew()
isNew in interface HttpSessionpublic void putValue(String arg0, Object arg1)
putValue in interface HttpSessionpublic void removeAttribute(String arg0)
removeAttribute in interface HttpSessionpublic void removeValue(String arg0)
removeValue in interface HttpSessionpublic void setAttribute(String arg0, Object arg1)
setAttribute in interface HttpSessionpublic void setMaxInactiveInterval(int arg0)
setMaxInactiveInterval in interface HttpSessionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.