Class MockHttpSession
java.lang.Object
org.apache.commons.chain.web.javax.servlet.MockHttpSession
- All Implemented Interfaces:
HttpSession
Mock Object for
HttpSession
(Version 2.3)-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) long
getId()
long
int
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
(ServletContext servletContext)
-
Field Details
-
attributes
-
servletContext
-
-
Constructor Details
-
MockHttpSession
public MockHttpSession() -
MockHttpSession
-
-
Method Details
-
setServletContext
-
getAttribute
- Specified by:
getAttribute
in interfaceHttpSession
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceHttpSession
-
getCreationTime
- Specified by:
getCreationTime
in interfaceHttpSession
-
getId
- Specified by:
getId
in interfaceHttpSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTime
in interfaceHttpSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveInterval
in interfaceHttpSession
-
getServletContext
- Specified by:
getServletContext
in interfaceHttpSession
-
getSessionContext
- Specified by:
getSessionContext
in interfaceHttpSession
-
getValue
Deprecated.- Specified by:
getValue
in interfaceHttpSession
-
getValueNames
Deprecated.- Specified by:
getValueNames
in interfaceHttpSession
-
invalidate
- Specified by:
invalidate
in interfaceHttpSession
-
isNew
- Specified by:
isNew
in interfaceHttpSession
-
putValue
Deprecated.- Specified by:
putValue
in interfaceHttpSession
-
removeAttribute
- Specified by:
removeAttribute
in interfaceHttpSession
-
removeValue
Deprecated.- Specified by:
removeValue
in interfaceHttpSession
-
setAttribute
- Specified by:
setAttribute
in interfaceHttpSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveInterval
in interfaceHttpSession
-