Class MockHttpSession
java.lang.Object
org.apache.felix.http.javaxwrappers.HttpSessionWrapper
org.apache.sling.servlethelpers.MockHttpSession
org.apache.sling.testing.mock.sling.servlet.MockHttpSession
- All Implemented Interfaces:
javax.servlet.http.HttpSession
@Deprecated(since="3.2.0")
public final class MockHttpSession
extends org.apache.sling.servlethelpers.MockHttpSession
Deprecated.
Mock
HttpSession implementation.-
Constructor Summary
ConstructorsConstructorDescriptionMockHttpSession(org.apache.sling.servlethelpers.MockJakartaHttpSession wrappedSession) Deprecated. -
Method Summary
Methods inherited from class org.apache.sling.servlethelpers.MockHttpSession
getServletContext, isInvalidated, setNewMethods 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
public MockHttpSession(org.apache.sling.servlethelpers.MockJakartaHttpSession wrappedSession) Deprecated.
-
-
Method Details
-
newMockServletContext
Deprecated.- Overrides:
newMockServletContextin classorg.apache.sling.servlethelpers.MockHttpSession
-
MockJakartaHttpSessioninstead.