Package com.flowable.spring.boot
Class DispatcherServletConfiguration
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
com.flowable.spring.boot.DispatcherServletConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.class)
@EnableAsync
public class DispatcherServletConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
Base dispatcher configuration that can be used to configure context for the REST API.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
static int
BASE_EXCEPTION_HANDLER_ADVICE_ORDER
static java.lang.String
CORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
static int
CORE_EXCEPTION_HANDLER_ADVICE_ORDER
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description DispatcherServletConfiguration()
-
Method Summary
Modifier and Type Method Description protected void
addFlowableDefaultHttpMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
protected void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
org.flowable.common.rest.exception.BaseExceptionHandlerAdvice
baseExceptionHandlerAdvice()
protected void
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
void
configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
CoreExceptionHandlerAdvice
coreExceptionHandlerAdvice()
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
createRequestMappingHandlerMapping()
org.springframework.web.servlet.i18n.SessionLocaleResolver
localeResolver()
org.springframework.web.multipart.MultipartResolver
multipartResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.MultipartProperties> multipartPropertiesObjectProvider)
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addArgumentResolvers, addCorsMappings, addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, beanNameHandlerMapping, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, defaultServletHandlerMapping, extendHandlerExceptionResolvers, extendMessageConverters, getApplicationContext, getArgumentResolvers, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, getValidator, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
-
Field Details
-
CORE_EXCEPTION_HANDLER_ADVICE_ORDER
public static final int CORE_EXCEPTION_HANDLER_ADVICE_ORDER- See Also:
- Constant Field Values
-
BASE_EXCEPTION_HANDLER_ADVICE_ORDER
public static final int BASE_EXCEPTION_HANDLER_ADVICE_ORDER- See Also:
- Constant Field Values
-
CORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
public static final java.lang.String CORE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME- See Also:
- Constant Field Values
-
BASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME
public static final java.lang.String BASE_EXCEPTION_HANDLER_ADVICE_BEAN_NAME- See Also:
- Constant Field Values
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
DispatcherServletConfiguration
public DispatcherServletConfiguration()
-
-
Method Details
-
coreExceptionHandlerAdvice
@Bean("coreExceptionHandlerAdvice") @Order(0) @ConditionalOnMissingBean(name="coreExceptionHandlerAdvice") public CoreExceptionHandlerAdvice coreExceptionHandlerAdvice() -
baseExceptionHandlerAdvice
@Bean("baseExceptionHandlerAdvice") @Order(10) @ConditionalOnMissingBean(name="baseExceptionHandlerAdvice") public org.flowable.common.rest.exception.BaseExceptionHandlerAdvice baseExceptionHandlerAdvice() -
localeResolver
@Bean public org.springframework.web.servlet.i18n.SessionLocaleResolver localeResolver() -
addInterceptors
protected void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)- Overrides:
addInterceptors
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
multipartResolver
@Bean public org.springframework.web.multipart.MultipartResolver multipartResolver(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.MultipartProperties> multipartPropertiesObjectProvider) -
createRequestMappingHandlerMapping
protected org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping createRequestMappingHandlerMapping()- Overrides:
createRequestMappingHandlerMapping
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
configureMessageConverters
public void configureMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)- Overrides:
configureMessageConverters
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
addFlowableDefaultHttpMessageConverters
protected void addFlowableDefaultHttpMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) -
configureContentNegotiation
protected void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)- Overrides:
configureContentNegotiation
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-