public class WACheckSessionExpiration extends CheckSessionExpiration
To use this servlet you must specify the following properties:
CheckSessionExpiration| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
MY_RESOURCE_NAME |
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
WACheckSessionExpiration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
constructPaths()
Convert
relativeExpirationPath and
relativeExpirationURL to absolute values, taking into
account the Web application's context root, and call the superclass
methods to set the corresponding superclass properties. |
protected java.lang.String |
errorMsg(java.lang.String pResourceKey)
Get a formatted error message string based on an error message
resource key.
|
protected java.lang.String |
errorMsg(java.lang.String pResourceKey,
java.lang.Object pArg)
Get a formatted error message string based on an error message
resource key and a single message argument.
|
protected java.lang.String |
errorMsg(java.lang.String pResourceKey,
java.lang.Object[] pArgs)
Get a formatted error message string based on an error message
resource key and an array of message arguments.
|
java.lang.String |
getRelativeExpirationPath()
Return the root, relative to the web application's context path,
of the URL's that should be checked for session expiration.
|
java.lang.String |
getRelativeExpirationURL()
Return the URL, relative to the web application's context path, that
we should redirect to if an expired session is seen.
|
java.lang.String |
getWebApplicationName()
Return the name by this web applicaiton is known to the web
application registry.
|
WebAppRegistry |
getWebAppRegistry()
Return the Dynamo Web Application Registry that knows about the
web application whose URL's we are checking for session expiration.
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Examine the current request to see if the URL matches the criteria for
detecting expired sessions and if the session has actually expired, and
redirect to a specified URL if necessary.
|
void |
setRelativeExpirationPath(java.lang.String pRelativeExpirationPath)
Specify the root, relative to the web application's context path,
of the URL's that should be checked for session expiration.
|
void |
setRelativeExpirationURL(java.lang.String pRelativeExpirationURL)
Specify the URL, relative to the web application's context path, that
we should redirect to if an expired session is seen.
|
void |
setWebApplicationName(java.lang.String pWebApplicationName)
Specify the name by this web applicaiton is known to the web
application registry.
|
void |
setWebAppRegistry(WebAppRegistry pWebAppRegistry)
Specify the Dynamo Web Application Registry that knows about the
web application whose URL's we are checking for session expiration.
|
getExpirationURL, getSessionExpirationPath, setExpirationURL, setSessionExpirationPathdoStartService, getInsertAfterServlet, setInsertAfterServletcreateAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, doStopService, getAbsoluteName, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNextServlet, passRequest, setNextServletpublic static java.lang.String CLASS_VERSION
public static final java.lang.String MY_RESOURCE_NAME
public void setWebAppRegistry(WebAppRegistry pWebAppRegistry)
public WebAppRegistry getWebAppRegistry()
public void setWebApplicationName(java.lang.String pWebApplicationName)
public java.lang.String getWebApplicationName()
public void setRelativeExpirationPath(java.lang.String pRelativeExpirationPath)
sessionExpirationPath property
in the base class by prepending the web app's context root to the
value of relativeExpirationPath.public java.lang.String getRelativeExpirationPath()
public void setRelativeExpirationURL(java.lang.String pRelativeExpirationURL)
expirationURL property in the base class
by prepending the web app's context root to the value of
relativeExpirationURL.public java.lang.String getRelativeExpirationURL()
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
This method simply converts the relative expiration path and expiration
URL properties to absolute URL's (if necessary) and then calls the
superclass service method to detect and handle expired
sessions.
service in class CheckSessionExpirationjava.io.IOException - if an error occurred while reading or writing
the servlet requestjavax.servlet.ServletException - if an error occurred while processing
the servlet requestprotected void constructPaths()
throws javax.servlet.ServletException
relativeExpirationPath and
relativeExpirationURL to absolute values, taking into
account the Web application's context root, and call the superclass
methods to set the corresponding superclass properties.javax.servlet.ServletExceptionprotected java.lang.String errorMsg(java.lang.String pResourceKey)
protected java.lang.String errorMsg(java.lang.String pResourceKey,
java.lang.Object pArg)
protected java.lang.String errorMsg(java.lang.String pResourceKey,
java.lang.Object[] pArgs)