Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

net.sf.acegisecurity.ui.session
Class HttpSessionEventPublisher  view HttpSessionEventPublisher download HttpSessionEventPublisher.java

java.lang.Object
  extended bynet.sf.acegisecurity.ui.session.HttpSessionEventPublisher
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener

public class HttpSessionEventPublisher
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener

Declared in web.xml as
<listener>
<listener-class>net.sf.acegisecurity.ui.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.


Field Summary
private  org.springframework.context.ApplicationContext context
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
HttpSessionEventPublisher()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          Not implemented
 void contextInitialized(javax.servlet.ServletContextEvent event)
          Handled internally by a call to WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext)>WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext) 55
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
          Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application context.
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
          Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application context.
(package private)  void setContext(org.springframework.context.ApplicationContext context)
          Package level method for testing and internal usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

context

private org.springframework.context.ApplicationContext context
Constructor Detail

HttpSessionEventPublisher

public HttpSessionEventPublisher()
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Not implemented

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Handled internally by a call to WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext)>WebApplicationContextUtils.getRequiredWebApplicationContext(javax.servlet.ServletContext) 55

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a HttpSessionCreatedEvent to the application context.

Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Handles the HttpSessionEvent by publishing a HttpSessionDestroyedEvent to the application context.

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener

setContext

void setContext(org.springframework.context.ApplicationContext context)
Package level method for testing and internal usage