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
Fields Modifier and Type Field Description static String
CONTEXT_ID
The ID of the application context of the server servlet: "blueriq-server"static String
SERVLET_MAPPING
The URL mapping of the server servlet: "/server/*"static String
SERVLET_NAME
The name of the server servlet: "blueriq-server"static String
SERVLET_PATH
The servlet path of the server servlet: "/server"
-
Constructor Summary
Constructors Constructor Description ServerConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
protected void
configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> exceptionResolvers)
static String
getServletMapping()
Getter forSERVLET_MAPPING
to avoid String interning.static String
getServletName()
Getter forSERVLET_NAME
to avoid String interning.static String
getServletPath()
Getter forSERVLET_PATH
to avoid String interning.static org.springframework.context.support.PropertySourcesPlaceholderConfigurer
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
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, getApplicationContext, getArgumentResolvers, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, handlerExceptionResolver, handlerFunctionAdapter, httpRequestHandlerAdapter, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, resourceHandlerMapping, routerFunctionMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping
-
-
-
-
Field Detail
-
CONTEXT_ID
public static final String CONTEXT_ID
The ID of the application context of the server servlet: "blueriq-server"- See Also:
- Constant Field Values
-
SERVLET_PATH
public static final String SERVLET_PATH
The servlet path of the server servlet: "/server"- See Also:
- Constant Field Values
-
SERVLET_MAPPING
public static final String SERVLET_MAPPING
The URL mapping of the server servlet: "/server/*"- See Also:
- Constant Field Values
-
SERVLET_NAME
public static final String SERVLET_NAME
The name of the server servlet: "blueriq-server"- See Also:
- Constant Field Values
-
-
Method Detail
-
getServletName
public static String getServletName()
Getter forSERVLET_NAME
to avoid String interning.- Returns:
SERVLET_NAME
-
getServletPath
public static String getServletPath()
Getter forSERVLET_PATH
to avoid String interning.- Returns:
SERVLET_PATH
-
getServletMapping
public static String 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
-
-