Class CommerceBaseWebConfig

java.lang.Object
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
de.hybris.platform.webservicescommons.config.CommerceBaseWebConfig
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
Direct Known Subclasses:
WebConfig

public class CommerceBaseWebConfig extends org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration
Base class for Commerce WebMvc Configuration. Overriding Bean of type HandlerExceptionResolver to skip creation of it because the resolvers are configured already through xml configuration by each webservices extension. Otherwise, the customized resolvers will be hidden by this resolver because the order is set as 0 by WebMvcConfigurationSupport.handlerExceptionResolver(org.springframework.web.accept.ContentNegotiationManager). Extends from DelegatingWebMvcConfiguration directly and control what you want to configure if this is not true for your extension.
Since:
2211
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.HandlerExceptionResolver
    handlerExceptionResolver(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager)
    Skip creating HandlerExceptionResolver bean.

    Methods inherited from class org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration

    addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, 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, handlerFunctionAdapter, httpRequestHandlerAdapter, localeResolver, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcPathMatcher, mvcPatternParser, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, requestMappingHandlerAdapter, requestMappingHandlerMapping, 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
  • Constructor Details

    • CommerceBaseWebConfig

      public CommerceBaseWebConfig()
  • Method Details

    • handlerExceptionResolver

      @Bean public org.springframework.web.servlet.HandlerExceptionResolver handlerExceptionResolver(@Qualifier("mvcContentNegotiationManager") org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager)
      Skip creating HandlerExceptionResolver bean. See CommerceBaseWebConfig.
      Overrides:
      handlerExceptionResolver in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
      Parameters:
      contentNegotiationManager -
      Returns:
      null