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