Class KSBDispatcherServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.springframework.web.servlet.HttpServletBean
org.springframework.web.servlet.FrameworkServlet
org.springframework.web.servlet.DispatcherServlet
org.kuali.rice.ksb.messaging.servlet.KSBDispatcherServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware, org.springframework.core.env.EnvironmentCapable

public class KSBDispatcherServlet extends org.springframework.web.servlet.DispatcherServlet
A DispatcherServlet which dispatches incoming requests to the appropriate service endpoint.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Summary

    Fields inherited from class org.springframework.web.servlet.DispatcherServlet

    EXCEPTION_ATTRIBUTE, FLASH_MAP_MANAGER_ATTRIBUTE, FLASH_MAP_MANAGER_BEAN_NAME, HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_MAPPING_BEAN_NAME, INPUT_FLASH_MAP_ATTRIBUTE, LOCALE_RESOLVER_ATTRIBUTE, LOCALE_RESOLVER_BEAN_NAME, MULTIPART_RESOLVER_BEAN_NAME, OUTPUT_FLASH_MAP_ATTRIBUTE, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, REQUEST_TO_VIEW_NAME_TRANSLATOR_BEAN_NAME, THEME_RESOLVER_ATTRIBUTE, THEME_RESOLVER_BEAN_NAME, THEME_SOURCE_ATTRIBUTE, 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javax.servlet.ServletConfig
    getCXFServletConfig(javax.servlet.ServletConfig baseServletConfig)
    This is a workaround after upgrading to CXF 2.7.0 whereby we could no longer just call "setHideServiceList" on the ServletController.
    protected org.springframework.web.servlet.HandlerExecutionChain
    getHandler(javax.servlet.http.HttpServletRequest request)
     
    protected org.springframework.web.servlet.HandlerAdapter
     
    protected void
     
    protected org.springframework.web.context.WebApplicationContext
     
    protected boolean
    isSecure(javax.servlet.http.HttpServletRequest request)
     
    protected org.springframework.web.servlet.ModelAndView
    processHandlerException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex)
     
    protected void
    service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Overrides the service method to replace the request and responses with one which will provide input and output streams for verifying and signing the data.

    Methods inherited from class org.springframework.web.servlet.DispatcherServlet

    buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandlerMappings, getMultipartResolver, getThemeSource, initStrategies, noHandlerFound, onRefresh, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers, setThrowExceptionIfNoHandlerFound

    Methods inherited from class org.springframework.web.servlet.FrameworkServlet

    applyInitializers, buildRequestAttributes, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getContextId, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initServletBean, isEnableLoggingRequestDetails, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, setApplicationContext, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setEnableLoggingRequestDetails, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritable

    Methods inherited from class org.springframework.web.servlet.HttpServletBean

    addRequiredProperty, createEnvironment, getEnvironment, getServletName, init, initBeanWrapper, setEnvironment

    Methods inherited from class javax.servlet.http.HttpServlet

    doHead, getLastModified, service

    Methods inherited from class javax.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KSBDispatcherServlet

      public KSBDispatcherServlet()
  • Method Details

    • initFrameworkServlet

      protected void initFrameworkServlet() throws javax.servlet.ServletException, org.springframework.beans.BeansException
      Overrides:
      initFrameworkServlet in class org.springframework.web.servlet.FrameworkServlet
      Throws:
      javax.servlet.ServletException
      org.springframework.beans.BeansException
    • getCXFServletConfig

      protected javax.servlet.ServletConfig getCXFServletConfig(javax.servlet.ServletConfig baseServletConfig)
      This is a workaround after upgrading to CXF 2.7.0 whereby we could no longer just call "setHideServiceList" on the ServletController. Instead, it is now reading this information from the ServletConfig, so wrapping the base ServletContext to return true or false for hide service list depending on whether or not we are in dev mode.
    • getHandlerAdapter

      protected org.springframework.web.servlet.HandlerAdapter getHandlerAdapter(Object handler) throws javax.servlet.ServletException
      Overrides:
      getHandlerAdapter in class org.springframework.web.servlet.DispatcherServlet
      Throws:
      javax.servlet.ServletException
    • getHandler

      protected org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request) throws Exception
      Overrides:
      getHandler in class org.springframework.web.servlet.DispatcherServlet
      Throws:
      Exception
    • processHandlerException

      protected org.springframework.web.servlet.ModelAndView processHandlerException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception
      Overrides:
      processHandlerException in class org.springframework.web.servlet.DispatcherServlet
      Throws:
      Exception
    • service

      protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides the service method to replace the request and responses with one which will provide input and output streams for verifying and signing the data.
      Overrides:
      service in class org.springframework.web.servlet.FrameworkServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • initWebApplicationContext

      protected org.springframework.web.context.WebApplicationContext initWebApplicationContext()
      Overrides:
      initWebApplicationContext in class org.springframework.web.servlet.FrameworkServlet
    • isSecure

      protected boolean isSecure(javax.servlet.http.HttpServletRequest request)