|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.terasoluna.fw.web.HttpSessionListenerImpl
public class HttpSessionListenerImpl
Class that processes the life cycle events of HTTP session.
At the time of invalidaing the HTTP session, delete the directory linked to the session, if it exists.
Perform the settings in web.xml
as shown below.
web.xml
configuration example
<listener>
<listener-class>
jp.terasoluna.fw.web.HttpSessionListenerImpl
</listener-class>
</listener>
For the generation and deletion process of session directory, refer to FileUtil.
FileUtil
Constructor Summary | |
---|---|
HttpSessionListenerImpl()
|
Method Summary | |
---|---|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
Processes the creation event of HTTP session. |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Processes the invalidation event of HTTP session. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSessionListenerImpl()
Method Detail |
---|
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Processes the creation event of HTTP session.
sessionCreated
in interface javax.servlet.http.HttpSessionListener
event
- Session eventpublic void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Processes the invalidation event of HTTP session.
Delete the directory linked to the session, if it exists.
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
event
- Session event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |