|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.http.SessionListener
public abstract class SessionListener
A HttpSessionListener to close any resources
that are associated with the Application instance
and its sub-classes.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected static String |
CONTAINER_INSTANCE
The session attribute associated with ContainerInstance. |
protected static Logger |
logger
The logger to use to log messages to. |
| Constructor Summary | |
|---|---|
SessionListener()
|
|
| Method Summary | |
|---|---|
protected abstract void |
close(HttpSession session)
Close any resources associated with the session. |
void |
sessionCreated(HttpSessionEvent event)
Add the current session to the servlet context to be handled when the context is unloaded. |
void |
sessionDestroyed(HttpSessionEvent event)
Close the persistence manager when the session is destroyed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String CONTAINER_INSTANCE
ContainerInstance. This assumes that the
Servlet is configured with a name servlet in
web.xml.
"Echo2UserInstance:servlet"
protected static final Logger logger
| Constructor Detail |
|---|
public SessionListener()
| Method Detail |
|---|
public void sessionCreated(HttpSessionEvent event)
sessionCreated in interface HttpSessionListenerContextListener.add(javax.servlet.http.HttpSession, com.sptci.echo2.http.SessionListener)public void sessionDestroyed(HttpSessionEvent event)
sessionDestroyed in interface HttpSessionListenerclose(javax.servlet.http.HttpSession),
ContextListener.remove(javax.servlet.http.HttpSession)protected abstract void close(HttpSession session)
session - The session in which the connection was established.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||