Package org.citrusframework.http.servlet
Class CitrusDispatcherServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.springframework.web.servlet.HttpServletBean
org.springframework.web.servlet.FrameworkServlet
org.springframework.web.servlet.DispatcherServlet
org.citrusframework.http.servlet.CitrusDispatcherServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable
public class CitrusDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
Citrus dispatcher servlet extends Spring's message dispatcher servlet and just
adds optional configuration settings for default mapping strategies and so on.
- Since:
- 1.4
- Author:
- Christoph Deppisch
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final StringDefault bean names used in default configurationprotected static final Stringprotected static final StringFields 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_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCitrusDispatcherServlet(HttpServer httpServer) Default constructor using http server instance that holds this servlet. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureHandlerInterceptor(org.springframework.context.ApplicationContext context) Post process handler interceptors.protected voidconfigureMessageController(org.springframework.context.ApplicationContext context) Post process message controller.protected voidconfigureMessageConverter(org.springframework.context.ApplicationContext context) Post process message converter.protected voidinitStrategies(org.springframework.context.ApplicationContext context) Methods inherited from class org.springframework.web.servlet.DispatcherServlet
buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandler, getHandlerAdapter, getHandlerMappings, getMultipartResolver, getThemeSource, noHandlerFound, onRefresh, processHandlerException, 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, initFrameworkServlet, initServletBean, initWebApplicationContext, isEnableLoggingRequestDetails, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, service, 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 jakarta.servlet.http.HttpServlet
doHead, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log, log
-
Field Details
-
LOGGING_INTERCEPTOR_BEAN_NAME
Default bean names used in default configuration- See Also:
-
HANDLER_INTERCEPTOR_BEAN_NAME
- See Also:
-
MESSAGE_CONTROLLER_BEAN_NAME
- See Also:
-
MESSAGE_CONVERTER_BEAN_NAME
- See Also:
-
-
Constructor Details
-
CitrusDispatcherServlet
Default constructor using http server instance that holds this servlet.- Parameters:
httpServer-
-
-
Method Details
-
initStrategies
protected void initStrategies(org.springframework.context.ApplicationContext context) - Overrides:
initStrategiesin classorg.springframework.web.servlet.DispatcherServlet
-
configureHandlerInterceptor
protected void configureHandlerInterceptor(org.springframework.context.ApplicationContext context) Post process handler interceptors.- Parameters:
context-
-
configureMessageController
protected void configureMessageController(org.springframework.context.ApplicationContext context) Post process message controller.- Parameters:
context-
-
configureMessageConverter
protected void configureMessageConverter(org.springframework.context.ApplicationContext context) Post process message converter.- Parameters:
context-
-