|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.servlet.SessionMappingListener
public class SessionMappingListener
Holds a Map of HttpSessions for sharing between the portlet and servlet. The Map uses weak references to the HttpSession objects to ensure this class does not cause any memory leaks if a session is not removed from the map at the appropriate time.
| Constructor Summary | |
|---|---|
SessionMappingListener()
|
|
| Method Summary | |
|---|---|
static javax.servlet.http.HttpSession |
getSession(java.lang.String sid)
Gets the session with the specified ID. |
static javax.servlet.http.HttpSession |
removeSession(java.lang.String sid)
Removes a session with the specified ID. |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
|
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
|
static void |
setSession(javax.servlet.http.HttpSession session)
Stores a session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionMappingListener()
| Method Detail |
|---|
public static javax.servlet.http.HttpSession getSession(java.lang.String sid)
public static void setSession(javax.servlet.http.HttpSession session)
public static javax.servlet.http.HttpSession removeSession(java.lang.String sid)
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
sessionCreated in interface javax.servlet.http.HttpSessionListenerHttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
sessionDestroyed in interface javax.servlet.http.HttpSessionListenerHttpSessionListener.sessionDestroyed(javax.servlet.http.HttpSessionEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||