Class MockHttpSession
java.lang.Object
org.apache.commons.chain.web.javax.servlet.MockHttpSession
- All Implemented Interfaces:
javax.servlet.http.HttpSession
Mock Object for
HttpSession
(Version 2.3)-
Field Summary
Modifier and TypeFieldDescriptionprotected javax.servlet.ServletContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) long
getId()
long
int
javax.servlet.ServletContext
javax.servlet.http.HttpSessionContext
Deprecated.String[]
Deprecated.void
boolean
isNew()
void
Deprecated.void
removeAttribute
(String name) void
removeValue
(String name) Deprecated.void
setAttribute
(String name, Object value) void
setMaxInactiveInterval
(int interval) void
setServletContext
(javax.servlet.ServletContext servletContext)
-
Field Details
-
attributes
-
servletContext
-
-
Constructor Details
-
MockHttpSession
public MockHttpSession() -
MockHttpSession
-
-
Method Details
-
setServletContext
-
getAttribute
- Specified by:
getAttribute
in interfacejavax.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejavax.servlet.http.HttpSession
-
getCreationTime
- Specified by:
getCreationTime
in interfacejavax.servlet.http.HttpSession
-
getId
- Specified by:
getId
in interfacejavax.servlet.http.HttpSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTime
in interfacejavax.servlet.http.HttpSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveInterval
in interfacejavax.servlet.http.HttpSession
-
getServletContext
- Specified by:
getServletContext
in interfacejavax.servlet.http.HttpSession
-
getSessionContext
- Specified by:
getSessionContext
in interfacejavax.servlet.http.HttpSession
-
getValue
Deprecated.- Specified by:
getValue
in interfacejavax.servlet.http.HttpSession
-
getValueNames
Deprecated.- Specified by:
getValueNames
in interfacejavax.servlet.http.HttpSession
-
invalidate
- Specified by:
invalidate
in interfacejavax.servlet.http.HttpSession
-
isNew
- Specified by:
isNew
in interfacejavax.servlet.http.HttpSession
-
putValue
Deprecated.- Specified by:
putValue
in interfacejavax.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttribute
in interfacejavax.servlet.http.HttpSession
-
removeValue
Deprecated.- Specified by:
removeValue
in interfacejavax.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttribute
in interfacejavax.servlet.http.HttpSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveInterval
in interfacejavax.servlet.http.HttpSession
-