Methods Summary |
---|
public void | attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)Record the fact that a servlet context attribute was added.
// --------------------------------------------------------- Public Methods
log("attributeAdded('" + event.getSession().getId() + "', '" +
event.getName() + "', '" + event.getValue() + "')");
|
public void | attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)Record the fact that a servlet context attribute was removed.
log("attributeRemoved('" + event.getSession().getId() + "', '" +
event.getName() + "', '" + event.getValue() + "')");
|
public void | attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)Record the fact that a servlet context attribute was replaced.
log("attributeReplaced('" + event.getSession().getId() + "', '" +
event.getName() + "', '" + event.getValue() + "')");
|
public void | contextDestroyed(javax.servlet.ServletContextEvent event)Record the fact that this web application has been destroyed.
log("contextDestroyed()");
this.context = null;
|
public void | contextInitialized(javax.servlet.ServletContextEvent event)Record the fact that this web application has been initialized.
this.context = event.getServletContext();
log("contextInitialized()");
|
private void | log(java.lang.String message)Log a message to the servlet context application log.
if (context != null)
context.log("SessionListener: " + message);
else
System.out.println("SessionListener: " + message);
|
public void | sessionCreated(javax.servlet.http.HttpSessionEvent event)Record the fact that a session has been created.
log("sessionCreated('" + event.getSession().getId() + "')");
|
public void | sessionDestroyed(javax.servlet.http.HttpSessionEvent event)Record the fact that a session has been destroyed.
log("sessionDestroyed('" + event.getSession().getId() + "')");
|