com.hazelcast.web.spring
Class SpringAwareWebFilter
java.lang.Object
com.hazelcast.web.WebFilter
com.hazelcast.web.spring.SpringAwareWebFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class SpringAwareWebFilter
- extends WebFilter
Provides Spring aware Hazelcast based session replication by extending from
WebFilter
Field Summary |
protected org.springframework.security.core.session.SessionRegistry |
sessionRegistry
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionRegistry
protected volatile org.springframework.security.core.session.SessionRegistry sessionRegistry
SpringAwareWebFilter
public SpringAwareWebFilter()
ensureSessionRegistryInitialized
protected void ensureSessionRegistryInitialized(org.springframework.context.ApplicationContext appContext)
createNewSession
protected WebFilter.HazelcastHttpSession createNewSession(WebFilter.RequestWrapper requestWrapper,
String existingSessionId)
- Overrides:
createNewSession
in class WebFilter
destroySession
protected void destroySession(WebFilter.HazelcastHttpSession session,
boolean invalidate)
- Description copied from class:
WebFilter
- Destroys a session, determining if it should be destroyed clusterwide automatically or via expiry.
- Overrides:
destroySession
in class WebFilter
- Parameters:
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 it
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.