Package org.apache.sling.servlethelpers
Class MockHttpSession
java.lang.Object
org.apache.felix.http.javaxwrappers.HttpSessionWrapper
org.apache.sling.servlethelpers.MockHttpSession
- All Implemented Interfaces:
javax.servlet.http.HttpSession
@ConsumerType
@Deprecated(since="2.0.0")
public class MockHttpSession
extends org.apache.felix.http.javaxwrappers.HttpSessionWrapper
Deprecated.
Mock
HttpSession implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletContextDeprecated.booleanDeprecated.protected MockServletContextDeprecated.voidsetNew(boolean isNew) Deprecated.Methods inherited from class org.apache.felix.http.javaxwrappers.HttpSessionWrapper
getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval
-
Constructor Details
-
MockHttpSession
Deprecated.
-
-
Method Details
-
newMockServletContext
Deprecated. -
getServletContext
public javax.servlet.ServletContext getServletContext()Deprecated.- Specified by:
getServletContextin interfacejavax.servlet.http.HttpSession- Overrides:
getServletContextin classorg.apache.felix.http.javaxwrappers.HttpSessionWrapper
-
isInvalidated
public boolean isInvalidated()Deprecated. -
setNew
public void setNew(boolean isNew) Deprecated.
-
MockJakartaHttpSessioninstead.