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