|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.mortbay.jetty.servlet.AbstractSessionManager
An Abstract implementation of SessionManager. The partial implementation of SessionManager interface provides the majority of the handling required to implement a SessionManager. Concrete implementations of SessionManager based on AbstractSessionManager need only implement the newSession method to return a specialized version of the Session inner class that provides an attribute Map.
If the property org.mortbay.jetty.servlet.AbstractSessionManager.23Notifications is set to true, the 2.3 servlet spec notification style will be used.
| Nested Class Summary | |
class |
AbstractSessionManager.Session
|
| Nested classes inherited from class org.mortbay.jetty.servlet.SessionManager |
|
| Field Summary | |
static boolean |
__24SessionDestroyed
|
static int |
__distantFuture
|
| Fields inherited from interface org.mortbay.jetty.servlet.SessionManager |
__MaxAge, __SessionCookie, __SessionDomain, __SessionPath, __SessionURL, __SessionUrlPrefix |
| Constructor Summary | |
AbstractSessionManager()
|
|
AbstractSessionManager(java.util.Random random)
|
|
| Method Summary | |
void |
addEventListener(java.util.EventListener listener)
Add an event listener. |
HttpSession |
getHttpSession(java.lang.String id)
|
int |
getMaxInactiveInterval()
|
int |
getMaxSessions()
|
int |
getMinSessions()
|
int |
getScavengePeriod()
|
java.util.Map |
getSessionMap()
|
int |
getSessions()
|
boolean |
getUseRequestedId()
|
java.lang.String |
getWorkerName()
Get the workname. |
void |
initialize(ServletHandler handler)
|
boolean |
isStarted()
|
HttpSession |
newHttpSession(HttpServletRequest request)
|
void |
removeEventListener(java.util.EventListener listener)
|
void |
resetStats()
|
void |
setMaxInactiveInterval(int seconds)
|
void |
setScavengePeriod(int seconds)
|
void |
setUseRequestedId(boolean useRequestedId)
|
void |
setWorkerName(java.lang.String workerName)
Set the workname. |
void |
start()
Start the LifeCycle. |
void |
stop()
Stop the LifeCycle. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int __distantFuture
public static final boolean __24SessionDestroyed
| Constructor Detail |
public AbstractSessionManager()
public AbstractSessionManager(java.util.Random random)
| Method Detail |
public boolean getUseRequestedId()
public void setUseRequestedId(boolean useRequestedId)
useRequestedId - True if requested session ID are first considered for new
session IDspublic void initialize(ServletHandler handler)
initialize in interface SessionManagerpublic java.util.Map getSessionMap()
public int getSessions()
public int getMinSessions()
public int getMaxSessions()
public void resetStats()
public HttpSession getHttpSession(java.lang.String id)
getHttpSession in interface SessionManagerpublic HttpSession newHttpSession(HttpServletRequest request)
newHttpSession in interface SessionManagerpublic java.lang.String getWorkerName()
public void setWorkerName(java.lang.String workerName)
workerName - public int getMaxInactiveInterval()
getMaxInactiveInterval in interface SessionManagerpublic void setMaxInactiveInterval(int seconds)
setMaxInactiveInterval in interface SessionManagerseconds - public int getScavengePeriod()
public void setScavengePeriod(int seconds)
seconds -
public void addEventListener(java.util.EventListener listener)
throws java.lang.IllegalArgumentException
SessionManager
addEventListener in interface SessionManagerlistener - An Event Listener. Individual SessionManagers
implemetations may accept arbitrary listener types, but they
are expected to at least handle
HttpSessionActivationListener,
HttpSessionAttributeListener,
HttpSessionBindingListener,
HttpSessionListener
java.lang.IllegalArgumentException - If an unsupported listener
is passed.public void removeEventListener(java.util.EventListener listener)
removeEventListener in interface SessionManagerpublic boolean isStarted()
isStarted in interface LifeCycle
public void start()
throws java.lang.Exception
LifeCycle
start in interface LifeCyclejava.lang.Exception - An arbitrary exception may be thrown.public void stop()
LifeCycle
stop in interface LifeCycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||