|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.filter.SessionLimiterFilterHelper
This class contains static methods used by the classes implementing the session limiting facility.
Field Summary | |
private static org.apache.commons.logging.Log |
log
Log instance. |
static java.lang.String |
SET_KEY
Attribute name of the Set containing the allowed session IDs in the application context. |
Constructor Summary | |
private |
SessionLimiterFilterHelper()
This is a utility class, so we want a private noarg constructor so instances cannot be created. |
Method Summary | |
static boolean |
isSessionRegistered(javax.servlet.ServletContext ctx,
java.lang.String sessionId)
Checks whether a session is registered (ie allowed). |
static boolean |
registerSession(javax.servlet.ServletContext ctx,
java.lang.String sessionId,
int maxSessions)
Register a session if the maximum number of sessions isn't reached yet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SET_KEY
private static org.apache.commons.logging.Log log
Constructor Detail |
private SessionLimiterFilterHelper()
Method Detail |
public static boolean registerSession(javax.servlet.ServletContext ctx, java.lang.String sessionId, int maxSessions)
ctx
- The servlet context.sessionId
- The session ID.maxSessions
- The number of allowed sessions.
public static boolean isSessionRegistered(javax.servlet.ServletContext ctx, java.lang.String sessionId)
ctx
- The servlet context.sessionId
- The session ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |