public class WebClientSessionManager
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSRFTOKEN |
static java.lang.String |
DESIGN_MODE |
static java.lang.String |
HTTPSESSION_KEY |
static java.lang.String |
LOST_UISESSIONID |
static java.lang.String |
MAX_UI_SESSION_PER_SESSION |
static java.lang.String |
UISESSIONID |
static java.lang.String |
USER_REFRESH |
Constructor and Description |
---|
WebClientSessionManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
getSessionInvalidated() |
WebClientSession |
getWebClientSession(javax.servlet.http.HttpServletRequest request)
Returns the WebClientSession associated with the request.
|
WebClientSession |
getWebClientSession(java.lang.String uisessionid)
Returns the WebClientSession associated with a particular id
|
int |
getWebClientSessionCount() |
java.lang.String[] |
getWebClientSessionIds()
Returns an array of WebClientSession Ids being managed
|
static WebClientSessionManager |
getWebClientSessionManager(javax.servlet.http.HttpSession session)
Return the WebClientSessionManager for the passed in HttpSession if it has one.
|
boolean |
hasAvailableSessions()
Returns true if the total number of WebClientSession in this WebClientSessionManager is less than
the maximum number of sessions allowed per HttpSession.
|
boolean |
hasMultipleSessions()
Returns a boolean true if the manager has more than one valid WebClientSessions and false if it doesn't
|
boolean |
hasSessions()
Returns a boolean true if the manager has any valid WebClientSessions and false if it doesn't
|
void |
preserveMXSession() |
boolean |
removeWebClientSession(WebClientSession wcs)
Removes the passed in WebClientSession from the session list and closes it, The WebclientSession
is removed from the master list of WebClientSession in he WebClientSessionFactory
|
void |
setLostSessionId(java.lang.String lostSessionId) |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent arg0) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0) |
public static final java.lang.String UISESSIONID
public static final java.lang.String DESIGN_MODE
public static final java.lang.String HTTPSESSION_KEY
public static final java.lang.String LOST_UISESSIONID
public static final java.lang.String USER_REFRESH
public static final java.lang.String MAX_UI_SESSION_PER_SESSION
public static final java.lang.String CSRFTOKEN
public static WebClientSessionManager getWebClientSessionManager(javax.servlet.http.HttpSession session)
public boolean hasSessions()
public boolean hasMultipleSessions()
public WebClientSession getWebClientSession(java.lang.String uisessionid)
uisessionid
- - id to look forpublic java.lang.String[] getWebClientSessionIds()
public WebClientSession getWebClientSession(javax.servlet.http.HttpServletRequest request) throws MXException
request
- - HttpServletRequest used to get the uisessionidMXExcption
- if WebClientSession timed out.MXException
public boolean removeWebClientSession(WebClientSession wcs)
wcs
- public void valueBound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent arg0)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public void preserveMXSession()
public boolean hasAvailableSessions()
public int getWebClientSessionCount()
public boolean getSessionInvalidated()
public void setLostSessionId(java.lang.String lostSessionId)