public class ServletPathDispatcherPipelineServlet extends DispatcherPipelineServletImpl
This will redirect a request to one of several servlets based on the servlet path of the request. The servlet path must have been determined, meaning that the ServletPathPipelineServlet should appear in the pipeline before this servlet.
The servletPathMap property determines the mapping from servlet path to servlet. If the servlet path does not match any of the serlvetPaths, then the request is passed on to the next servlet in the pipeline.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ServletPathDispatcherPipelineServlet()
Constructs a new ServletPathDispatcherPipelineServlet
|
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
java.util.Properties |
getDispatcherServiceMapNames() |
java.lang.Object |
getDispatchingAttribute(DynamoHttpServletRequest pRequest)
Returns the dispatching attribute of the request, this is the
String attribute that is used to determine if the request should
be dispatched to another servlet.
|
java.lang.String |
getServletPathPrefix() |
void |
setDispatcherServiceMapNames(java.util.Properties pDispatcherServiceMapNames)
Sets the property DispatcherServiceMapNames.
|
void |
setServletPathPrefix(java.lang.String pServletPathPrefix)
Sets the property ServletPathPrefix.
|
getDispatcherServiceMap, getExtraDispatcherServiceMap, getResponseWrappingConfiguration, service, setDispatcherServiceMap, setExtraDispatcherServiceMap, setResponseWrappingConfiguration
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, 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, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextServlet, passRequest, setNextServlet
public ServletPathDispatcherPipelineServlet()
public java.lang.Object getDispatchingAttribute(DynamoHttpServletRequest pRequest)
getDispatchingAttribute
in interface DispatcherPipelineableServlet
getDispatchingAttribute
in class DispatcherPipelineServletImpl
public void setServletPathPrefix(java.lang.String pServletPathPrefix)
pServletPathPrefix
- new value to setpublic java.lang.String getServletPathPrefix()
public void setDispatcherServiceMapNames(java.util.Properties pDispatcherServiceMapNames)
public java.util.Properties getDispatcherServiceMapNames()
public void doStartService() throws ServiceException
GenericService
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting up