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 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
    Constructor
    Description
     
  • Method Summary

    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
    Getter for SERVLET_MAPPING to avoid String interning.
    static String
    Getter for SERVLET_NAME to avoid String interning.
    static String
    Getter for SERVLET_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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONTEXT_ID

      public static final String CONTEXT_ID
      The ID of the application context of the server servlet: "blueriq-server"
      See Also:
    • SERVLET_PATH

      public static final String SERVLET_PATH
      The servlet path of the server servlet: "/server"
      See Also:
    • SERVLET_MAPPING

      public static final String SERVLET_MAPPING
      The URL mapping of the server servlet: "/server/*"
      See Also:
    • SERVLET_NAME

      public static final String SERVLET_NAME
      The name of the server servlet: "blueriq-server"
      See Also:
  • Constructor Details

    • ServerConfig

      public ServerConfig()
  • Method Details

    • getServletName

      public static String getServletName()
      Getter for SERVLET_NAME to avoid String interning.
      Returns:
      SERVLET_NAME
    • getServletPath

      public static String getServletPath()
      Getter for SERVLET_PATH to avoid String interning.
      Returns:
      SERVLET_PATH
    • getServletMapping

      public static String getServletMapping()
      Getter for SERVLET_MAPPING to avoid String interning.
      Returns:
      SERVLET_MAPPING
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      Overrides:
      addInterceptors in class org.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 class org.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 class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration