atg.servlet.pipeline
Class MimeTypeDispatcherPipelineServlet

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.nucleus.TimedOperationService
              extended by atg.servlet.pipeline.PipelineableServletImpl
                  extended by atg.servlet.pipeline.DispatcherPipelineServletImpl
                      extended by atg.servlet.pipeline.MimeTypeDispatcherPipelineServlet
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, DispatcherPipelineableServlet, PipelineableServlet, java.util.EventListener, javax.servlet.Servlet

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.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
MimeTypeDispatcherPipelineServlet()
          Constructs a new MimeTypeDispatcherPipelineServlet
 
Method Summary
 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.
 
Methods inherited from class atg.servlet.pipeline.DispatcherPipelineServletImpl
getDispatcherServiceMap, getExtraDispatcherServiceMap, getResponseWrappingConfiguration, service, setDispatcherServiceMap, setExtraDispatcherServiceMap, setResponseWrappingConfiguration
 
Methods inherited from class atg.servlet.pipeline.PipelineableServletImpl
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo
 
Methods inherited from class atg.nucleus.TimedOperationService
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
 
Methods inherited from class atg.nucleus.GenericService
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
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface atg.servlet.pipeline.PipelineableServlet
getNextServlet, passRequest, setNextServlet
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

MimeTypeDispatcherPipelineServlet

public MimeTypeDispatcherPipelineServlet()
Constructs a new MimeTypeDispatcherPipelineServlet

Method Detail

getDispatchingAttribute

public 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.

Specified by:
getDispatchingAttribute in interface DispatcherPipelineableServlet
Specified by:
getDispatchingAttribute in class DispatcherPipelineServletImpl