org.kuali.rice.ksb.messaging.servlet
Class KSBDispatcherServlet

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.kuali.rice.ksb.messaging.servlet.KSBDispatcherServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.beans.factory.Aware, 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:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.web.servlet.DispatcherServlet
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
KSBDispatcherServlet()
           
 
Method Summary
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, boolean cache)
           
protected  org.springframework.web.servlet.HandlerAdapter getHandlerAdapter(Object handler)
           
protected  void initFrameworkServlet()
           
protected  org.springframework.web.context.WebApplicationContext initWebApplicationContext()
           
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, getHandler, getMultipartResolver, getThemeSource, initStrategies, noHandlerFound, onRefresh, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers
 
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, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritable
 
Methods inherited from class org.springframework.web.servlet.HttpServletBean
addRequiredProperty, createEnvironment, getEnvironment, getServletContext, 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, getServletInfo, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSBDispatcherServlet

public KSBDispatcherServlet()
Method Detail

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,
                                                                           boolean cache)
                                                                    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)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.