Package waffle.mock.http
Class SimpleHttpSession
java.lang.Object
waffle.mock.http.SimpleHttpSession
- All Implemented Interfaces:
javax.servlet.http.HttpSession
Simple Http Session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attributeName) long
getId()
long
int
javax.servlet.ServletContext
final javax.servlet.http.HttpSessionContext
Deprecated.Remove this once servlet does.final Object
Deprecated.Remove this once servlet does.final String[]
Deprecated.Remove this once servlet does.void
boolean
isNew()
void
Deprecated.Remove this once servlet does.void
removeAttribute
(String attributeName) void
removeValue
(String arg0) Deprecated.Remove this once servlet does.void
setAttribute
(String attributeName, Object attributeValue) void
setMaxInactiveInterval
(int arg0)
-
Constructor Details
-
SimpleHttpSession
public SimpleHttpSession()
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.servlet.http.HttpSession
-
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfacejavax.servlet.http.HttpSession
-
getId
- Specified by:
getId
in interfacejavax.servlet.http.HttpSession
-
getLastAccessedTime
public long getLastAccessedTime()- Specified by:
getLastAccessedTime
in interfacejavax.servlet.http.HttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()- Specified by:
getMaxInactiveInterval
in interfacejavax.servlet.http.HttpSession
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContext
in interfacejavax.servlet.http.HttpSession
-
getSessionContext
@Deprecated @InlineMe(replacement="null") public final javax.servlet.http.HttpSessionContext getSessionContext()Deprecated.Remove this once servlet does.Simply remove this if it is ever actually removed from servlet-api- Specified by:
getSessionContext
in interfacejavax.servlet.http.HttpSession
-
getValue
Deprecated.Remove this once servlet does.Simply remove this if it is ever actually removed from servlet-api- Specified by:
getValue
in interfacejavax.servlet.http.HttpSession
-
getValueNames
Deprecated.Remove this once servlet does.Simply remove this if it is ever actually removed from servlet-api- Specified by:
getValueNames
in interfacejavax.servlet.http.HttpSession
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfacejavax.servlet.http.HttpSession
-
isNew
public boolean isNew()- Specified by:
isNew
in interfacejavax.servlet.http.HttpSession
-
putValue
Deprecated.Remove this once servlet does.Simply remove this if it is ever actually removed from servlet-api- Specified by:
putValue
in interfacejavax.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.servlet.http.HttpSession
-
removeValue
Deprecated.Remove this once servlet does.Simply remove this if it is ever actually removed from servlet-api- Specified by:
removeValue
in interfacejavax.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.servlet.http.HttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int arg0) - Specified by:
setMaxInactiveInterval
in interfacejavax.servlet.http.HttpSession
-