private final class HtmlUnitRequestBuilder.HtmlUnitMockHttpSession extends MockHttpSession
MockHttpSession
that ensures when
invalidate()
is called that the HttpSession
is removed from the managed sessions.Modifier and Type | Field and Description |
---|---|
private MockHttpServletRequest |
request |
SESSION_COOKIE_NAME
Modifier | Constructor and Description |
---|---|
|
HtmlUnitMockHttpSession(MockHttpServletRequest request) |
private |
HtmlUnitMockHttpSession(MockHttpServletRequest request,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
invalidate()
Invalidates this session then unbinds any objects bound to it.
|
access, changeSessionId, clearAttributes, deserializeState, getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, isInvalid, isNew, putValue, removeAttribute, removeValue, serializeState, setAttribute, setMaxInactiveInterval, setNew
private final MockHttpServletRequest request
public HtmlUnitMockHttpSession(MockHttpServletRequest request)
private HtmlUnitMockHttpSession(MockHttpServletRequest request, java.lang.String id)
public void invalidate()
MockHttpSession
invalidate
in class MockHttpSession