Package de.cuioss.test.jsf.mocks
Class CuiMockHttpSession
- java.lang.Object
-
- org.apache.myfaces.test.mock.MockHttpSession
-
- de.cuioss.test.jsf.mocks.CuiMockHttpSession
-
- All Implemented Interfaces:
HttpSession
public class CuiMockHttpSession extends org.apache.myfaces.test.mock.MockHttpSession
Extension toMockHttpSessionthat provides the programmatic setting of 'maxInactiveInterval'- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description CuiMockHttpSession(ServletContext servletContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxInactiveInterval()voidinvalidate()voidsetMaxInactiveInterval(int maxInactiveInterval)-
Methods inherited from class org.apache.myfaces.test.mock.MockHttpSession
addAttributeListener, getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getServletContext, getSessionContext, getValue, getValueNames, getWebContainer, isNew, putValue, removeAttribute, removeValue, setAttribute, setId, setServletContext
-
-
-
-
Constructor Detail
-
CuiMockHttpSession
public CuiMockHttpSession(ServletContext servletContext)
Constructor.- Parameters:
servletContext- must not be null
-
-
Method Detail
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceHttpSession- Overrides:
invalidatein classorg.apache.myfaces.test.mock.MockHttpSession
-
getMaxInactiveInterval
public int getMaxInactiveInterval()
- Specified by:
getMaxInactiveIntervalin interfaceHttpSession- Overrides:
getMaxInactiveIntervalin classorg.apache.myfaces.test.mock.MockHttpSession
-
setMaxInactiveInterval
public void setMaxInactiveInterval(int maxInactiveInterval)
- Specified by:
setMaxInactiveIntervalin interfaceHttpSession- Overrides:
setMaxInactiveIntervalin classorg.apache.myfaces.test.mock.MockHttpSession
-
-