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