public class WASetCurrentLocation extends SetCurrentLocation
To use this servlet you must specify the following properties:
SetCurrentLocation| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
MY_RESOURCE_NAME |
JHTML_EXTENSION, JSP_EXTENSION, SLASH_EXTENSIONSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
WASetCurrentLocation() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Properties |
createLocationMap()
Return a Properties object suitable for use as the value of
locationMap by prepending the web application's context
root to each path in relativePathMap. |
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.util.Properties |
getRelativePathMap()
Specify the mapping from URL's to virtual locations within the
store.
|
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 mapping to locations.
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Examine the current request URL and set the current location property
to the corresponding virtual location within the store.
|
void |
setRelativePathMap(java.util.Properties pRelativePathMap)
Specify the mapping from URL's to virtual locations within the
store, using URL's relative to the web app's context root.
|
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 mapping to locations.
|
getLocationMap, getLocationProperty, setLocation, setLocationMap, setLocationProperty, setUserLocation, sortLocationMapdoStartService, 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 setRelativePathMap(java.util.Properties pRelativePathMap)
locationMap in the
base class by prepending the web application's context root to
each URL in relativePathMappublic java.util.Properties getRelativePathMap()
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
This method simply converts the relative location map to an absolute
location map (if necessary) and then calls the superclass service
method to handle the request.
service in class SetCurrentLocationjava.io.IOException - if an error occurred while reading or writing
the servlet requestjavax.servlet.ServletException - if an error occurred while processing
the servlet requestprotected java.util.Properties createLocationMap()
throws javax.servlet.ServletException
locationMap by prepending the web application's context
root to each path in relativePathMap.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)