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_ATTRIBUTEFields inherited from class org.springframework.web.servlet.FrameworkServlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, SERVLET_CONTEXT_PREFIXFields inherited from class org.springframework.web.servlet.HttpServletBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.servlet.ServletConfiggetCXFServletConfig(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.HandlerExecutionChaingetHandler(javax.servlet.http.HttpServletRequest request) protected org.springframework.web.servlet.HandlerAdaptergetHandlerAdapter(Object handler) protected voidprotected org.springframework.web.context.WebApplicationContextprotected booleanisSecure(javax.servlet.http.HttpServletRequest request) protected org.springframework.web.servlet.ModelAndViewprocessHandlerException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) protected voidservice(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, setThrowExceptionIfNoHandlerFoundMethods 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, setThreadContextInheritableMethods inherited from class org.springframework.web.servlet.HttpServletBean
addRequiredProperty, createEnvironment, getEnvironment, getServletName, init, initBeanWrapper, setEnvironmentMethods inherited from class javax.servlet.http.HttpServlet
doHead, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log, log
-
Constructor Details
-
KSBDispatcherServlet
public KSBDispatcherServlet()
-
-
Method Details
-
initFrameworkServlet
protected void initFrameworkServlet() throws javax.servlet.ServletException, org.springframework.beans.BeansException- Overrides:
initFrameworkServletin classorg.springframework.web.servlet.FrameworkServlet- Throws:
javax.servlet.ServletExceptionorg.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:
getHandlerAdapterin classorg.springframework.web.servlet.DispatcherServlet- Throws:
javax.servlet.ServletException
-
getHandler
protected org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request) throws Exception - Overrides:
getHandlerin classorg.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:
processHandlerExceptionin classorg.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:
servicein classorg.springframework.web.servlet.FrameworkServlet- Throws:
javax.servlet.ServletExceptionIOException
-
initWebApplicationContext
protected org.springframework.web.context.WebApplicationContext initWebApplicationContext()- Overrides:
initWebApplicationContextin classorg.springframework.web.servlet.FrameworkServlet
-
isSecure
protected boolean isSecure(javax.servlet.http.HttpServletRequest request)
-