WebFilter.RequestWrapper, WebFilter.ResponseWrapper
Modifier and Type | Field and Description |
---|---|
protected org.springframework.security.core.session.SessionRegistry |
sessionRegistry |
filterConfig, HAZELCAST_REQUEST, HAZELCAST_SESSION_COOKIE_NAME, LOGGER, NULL_ENTRY, servletContext, WEB_FILTER_ATTRIBUTE_KEY
Constructor and Description |
---|
SpringAwareWebFilter() |
SpringAwareWebFilter(Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected HazelcastHttpSession |
createNewSession(WebFilter.RequestWrapper requestWrapper,
String existingSessionId) |
protected void |
destroySession(HazelcastHttpSession session,
boolean invalidate)
Destroys a session, determining if it should be destroyed clusterwide automatically or via expiry.
|
protected void |
ensureSessionRegistryInitialized(org.springframework.context.ApplicationContext appContext) |
createHazelcastHttpSession, destroy, doFilter, getClusteredSessionService, getProperties, init
protected volatile org.springframework.security.core.session.SessionRegistry sessionRegistry
public SpringAwareWebFilter()
public SpringAwareWebFilter(Properties properties)
protected void ensureSessionRegistryInitialized(org.springframework.context.ApplicationContext appContext)
protected HazelcastHttpSession createNewSession(WebFilter.RequestWrapper requestWrapper, String existingSessionId)
createNewSession
in class WebFilter
protected void destroySession(HazelcastHttpSession session, boolean invalidate)
WebFilter
destroySession
in class WebFilter
session
- the session to be destroyed locallyinvalidate
- true
if the session has been invalidated and should be destroyed on all nodes
in the cluster; otherwise, false
to only remove the session globally if this
node was the final node referencing itCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.