com.hazelcast.web.spring
Class SpringAwareWebFilter

java.lang.Object
  extended by com.hazelcast.web.WebFilter
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.hazelcast.web.WebFilter
WebFilter.HazelcastHttpSession, WebFilter.LocalCacheEntry, WebFilter.RequestWrapper, WebFilter.ResponseWrapper
 
Field Summary
protected  org.springframework.security.core.session.SessionRegistry sessionRegistry
           
 
Fields inherited from class com.hazelcast.web.WebFilter
filterConfig, HAZELCAST_REQUEST, HAZELCAST_SESSION_ATTRIBUTE_SEPARATOR, HAZELCAST_SESSION_COOKIE_NAME, LOGGER, NULL_ENTRY, servletContext, WEB_FILTER_ATTRIBUTE_KEY
 
Constructor Summary
SpringAwareWebFilter()
           
 
Method Summary
protected  WebFilter.HazelcastHttpSession createNewSession(WebFilter.RequestWrapper requestWrapper, String existingSessionId)
           
protected  void destroySession(WebFilter.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)
           
 
Methods inherited from class com.hazelcast.web.WebFilter
createHazelcastHttpSession, destroy, doFilter, getInstance, init, shutdownInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionRegistry

protected volatile org.springframework.security.core.session.SessionRegistry sessionRegistry
Constructor Detail

SpringAwareWebFilter

public SpringAwareWebFilter()
Method Detail

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 locally
invalidate - 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.