public class MimeTypeDispatcherPipelineServlet extends DispatcherPipelineServletImpl
This will redirect a request to one of several servlets based on the mime-type of the request. The mime type must be set in MimeTyperPipelineServlet.ATTRIBUTE_NAME, which means that the MimeTyperPipelineServlet must appear in the pipeline before this servlet.
The mimeTypeMap property determines the mapping from mime type to servlet. If the mime type does not match any of the mime types, 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 |
---|
MimeTypeDispatcherPipelineServlet()
Constructs a new MimeTypeDispatcherPipelineServlet
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDispatchingAttribute(DynamoHttpServletRequest pRequest)
Returns the Mime Type of the request, this is the String attribute
that is used to determine if the request should be dispatched to
another servlet.
|
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, doStartService, 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 MimeTypeDispatcherPipelineServlet()
public java.lang.Object getDispatchingAttribute(DynamoHttpServletRequest pRequest)
getDispatchingAttribute
in interface DispatcherPipelineableServlet
getDispatchingAttribute
in class DispatcherPipelineServletImpl