Class ConfigurableContentNegotiationManagerWebMvcConfigurer

java.lang.Object
io.microsphere.spring.webmvc.config.ConfigurableContentNegotiationManagerWebMvcConfigurer
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

public class ConfigurableContentNegotiationManagerWebMvcConfigurer extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Configurable ContentNegotiationManager WebMvcConfigurer
Since:
2017.03.23
Author:
Mercy
See Also:
  • ContentNegotiationManager
  • WebMvcConfigurer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
     
    protected void
    configureContentNegotiationManagerFactoryBean(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean)
     
    static Map<String,Object>
    properties.put("a.b.1", "1"); properties.put("a.b.2", "2"); properties.put("d.e.f.1", "1"); properties.put("d.e.f.2", "2"); properties.put("d.e.f.3", "3"); resolved result : {a={b={1=1, 2=2}}, d={e={f={1=1, 2=2, 3=3}}}}

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • Constructor Details

    • ConfigurableContentNegotiationManagerWebMvcConfigurer

      public ConfigurableContentNegotiationManagerWebMvcConfigurer(Map<String,String> properties)
  • Method Details

    • configureContentNegotiation

      public void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
      Specified by:
      configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureContentNegotiationManagerFactoryBean

      protected void configureContentNegotiationManagerFactoryBean(org.springframework.web.accept.ContentNegotiationManagerFactoryBean factoryBean)
    • resolveNestedMap

      public static Map<String,Object> resolveNestedMap(Map<String,String> properties)
      properties.put("a.b.1", "1"); properties.put("a.b.2", "2"); properties.put("d.e.f.1", "1"); properties.put("d.e.f.2", "2"); properties.put("d.e.f.3", "3"); resolved result : {a={b={1=1, 2=2}}, d={e={f={1=1, 2=2, 3=3}}}}
      Parameters:
      properties - Properties
      Returns:
      Resolved properties