org.springdashboard.logic
Class MonitoredDispatcherServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.springframework.web.servlet.HttpServletBean
              extended by org.springframework.web.servlet.FrameworkServlet
                  extended by org.springframework.web.servlet.DispatcherServlet
                      extended by org.springdashboard.logic.MonitoredDispatcherServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MonitoredDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet

This servlet extents spring dispatcher servlet and add hooks for statistic information. you must set this servlet as the dispatch servlet in your web.xml. See web.xml in the example folder.

Author:
Amir Shevat
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.web.servlet.DispatcherServlet
HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_EXECUTION_CHAIN_ATTRIBUTE, HANDLER_MAPPING_BEAN_NAME, LOCALE_RESOLVER_ATTRIBUTE, LOCALE_RESOLVER_BEAN_NAME, MULTIPART_RESOLVER_ATTRIBUTE, MULTIPART_RESOLVER_BEAN_NAME, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, THEME_RESOLVER_ATTRIBUTE, THEME_RESOLVER_BEAN_NAME, VIEW_RESOLVER_BEAN_NAME, WEB_APPLICATION_CONTEXT_ATTRIBUTE
 
Fields inherited from class org.springframework.web.servlet.FrameworkServlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, SERVLET_CONTEXT_PREFIX
 
Fields inherited from class org.springframework.web.servlet.HttpServletBean
logger
 
Constructor Summary
MonitoredDispatcherServlet()
           
 
Method Summary
protected  org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest arg0, boolean arg1)
           
 
Methods inherited from class org.springframework.web.servlet.DispatcherServlet
checkMultipart, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getHandlerAdapter, getLastModified, initFrameworkServlet, noHandlerFound, processHandlerException, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers
 
Methods inherited from class org.springframework.web.servlet.FrameworkServlet
createWebApplicationContext, destroy, doDelete, doGet, doPost, doPut, getContextClass, getContextConfigLocation, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initServletBean, initWebApplicationContext, isPublishContext, isPublishEvents, processRequest, setContextClass, setContextConfigLocation, setNamespace, setPublishContext, setPublishEvents
 
Methods inherited from class org.springframework.web.servlet.HttpServletBean
addRequiredProperty, init, initBeanWrapper
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredDispatcherServlet

public MonitoredDispatcherServlet()
Method Detail

getHandler

protected org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest arg0,
                                                                           boolean arg1)
                                                                    throws java.lang.Exception
Overrides:
getHandler in class org.springframework.web.servlet.DispatcherServlet
Throws:
java.lang.Exception


Copyright spacebug Open source initiative (www.spacebug.com). Amir Shevat