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
FieldsModifier and TypeFieldDescriptionprotected jakarta.servlet.ServletContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) longgetId()longintjakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionContextDeprecated.String[]Deprecated.voidbooleanisNew()voidDeprecated.voidremoveAttribute(String name) voidremoveValue(String name) Deprecated.voidsetAttribute(String name, Object value) voidsetMaxInactiveInterval(int interval) voidsetServletContext(jakarta.servlet.ServletContext servletContext)
-
Field Details
-
attributes
-
servletContext
-
-
Constructor Details
-
MockHttpSession
public MockHttpSession() -
MockHttpSession
-
-
Method Details
-
setServletContext
-
getAttribute
- Specified by:
getAttributein interfacejakarta.servlet.http.HttpSession
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.servlet.http.HttpSession
-
getCreationTime
- Specified by:
getCreationTimein interfacejakarta.servlet.http.HttpSession
-
getId
- Specified by:
getIdin interfacejakarta.servlet.http.HttpSession
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfacejakarta.servlet.http.HttpSession
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-
getServletContext
- Specified by:
getServletContextin interfacejakarta.servlet.http.HttpSession
-
getSessionContext
- Specified by:
getSessionContextin interfacejakarta.servlet.http.HttpSession
-
getValue
Deprecated.- Specified by:
getValuein interfacejakarta.servlet.http.HttpSession
-
getValueNames
Deprecated.- Specified by:
getValueNamesin interfacejakarta.servlet.http.HttpSession
-
invalidate
- Specified by:
invalidatein interfacejakarta.servlet.http.HttpSession
-
isNew
- Specified by:
isNewin interfacejakarta.servlet.http.HttpSession
-
putValue
Deprecated.- Specified by:
putValuein interfacejakarta.servlet.http.HttpSession
-
removeAttribute
- Specified by:
removeAttributein interfacejakarta.servlet.http.HttpSession
-
removeValue
Deprecated.- Specified by:
removeValuein interfacejakarta.servlet.http.HttpSession
-
setAttribute
- Specified by:
setAttributein interfacejakarta.servlet.http.HttpSession
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfacejakarta.servlet.http.HttpSession
-