Package com.aquima.web.boot
Class ServerConfig
java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
com.aquima.web.boot.ServerConfig
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
@ImportResource("classpath*:aquima-plugin-server-context.xml")
public class ServerConfig
extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Server servlet configuration class.
- Since:
- 10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The ID of the application context of the server servlet: "blueriq-server"static final String
The URL mapping of the server servlet: "/server/*"static final String
The name of the server servlet: "blueriq-server"static final String
The servlet path of the server servlet: "/server" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) protected void
configureHandlerExceptionResolvers
(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) static String
Getter forSERVLET_MAPPING
to avoid String interning.static String
Getter forSERVLET_NAME
to avoid String interning.static String
Getter forSERVLET_PATH
to avoid String interning.static org.springframework.context.support.PropertySourcesPlaceholderConfigurer
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
requestMappingHandlerMapping
(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, org.springframework.format.support.FormattingConversionService conversionService, org.springframework.web.servlet.resource.ResourceUrlProvider resourceUrlProvider) org.springframework.web.servlet.mvc.WebContentInterceptor
Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator, setConfigurers
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, beanNameHandlerMapping, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, flashMapManager, getApplicationContext, getArgumentResolvers, getAsyncSupportConfigurer, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, themeResolver, viewControllerHandlerMapping, viewNameTranslator
-
Field Details
-
CONTEXT_ID
The ID of the application context of the server servlet: "blueriq-server"- See Also:
-
SERVLET_PATH
The servlet path of the server servlet: "/server"- See Also:
-
SERVLET_MAPPING
The URL mapping of the server servlet: "/server/*"- See Also:
-
SERVLET_NAME
The name of the server servlet: "blueriq-server"- See Also:
-
-
Constructor Details
-
ServerConfig
public ServerConfig()
-
-
Method Details
-
getServletName
Getter forSERVLET_NAME
to avoid String interning.- Returns:
SERVLET_NAME
-
getServletPath
Getter forSERVLET_PATH
to avoid String interning.- Returns:
SERVLET_PATH
-
getServletMapping
Getter forSERVLET_MAPPING
to avoid String interning.- Returns:
SERVLET_MAPPING
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Overrides:
addInterceptors
in classorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
-
requestMappingHandlerMapping
@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, org.springframework.format.support.FormattingConversionService conversionService, org.springframework.web.servlet.resource.ResourceUrlProvider resourceUrlProvider) - Overrides:
requestMappingHandlerMapping
in classorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
-
propertySourcesPlaceholderConfigurer
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() -
webContentInterceptor
@Bean public org.springframework.web.servlet.mvc.WebContentInterceptor webContentInterceptor() -
configureHandlerExceptionResolvers
protected void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers) - Overrides:
configureHandlerExceptionResolvers
in classorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
-