org.springframework.security.web.session
Class HttpSessionEventPublisher

java.lang.Object
  extended by org.springframework.security.web.session.HttpSessionEventPublisher
All Implemented Interfaces:
EventListener, HttpSessionListener

public class HttpSessionEventPublisher
extends Object
implements HttpSessionListener

Declared in web.xml as

 <listener>
     <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
 </listener>
 
Publishes HttpSessionApplicationEvents to the Spring Root WebApplicationContext. Maps javax.servlet.http.HttpSessionListener.sessionCreated() to HttpSessionCreatedEvent. Maps javax.servlet.http.HttpSessionListener.sessionDestroyed() to HttpSessionDestroyedEvent.

Version:
$Id: HttpSessionEventPublisher.java 4035 2009-12-07 21:44:02Z ltaylor $
Author:
Ray Krueger

Constructor Summary
HttpSessionEventPublisher()
           
 
Method Summary
 void sessionCreated(HttpSessionEvent event)
          Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application appContext.
 void sessionDestroyed(HttpSessionEvent event)
          Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application appContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionEventPublisher

public HttpSessionEventPublisher()
Method Detail

sessionCreated

public void sessionCreated(HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application appContext.

Specified by:
sessionCreated in interface HttpSessionListener
Parameters:
event - HttpSessionEvent passed in by the container

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application appContext.

Specified by:
sessionDestroyed in interface HttpSessionListener
Parameters:
event - The HttpSessionEvent pass in by the container


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.