com.broadleafcommerce.core.rest.api.BroadleafRestApiMvcConfiguration@Deprecated public class BroadleafRestApiMvcConfiguration extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
Default Broadleaf-recommended configuration for REST APIs. Recommended use is to extend this class and annotate
your extension with @Configuration and @EnableWebMvc
The child class must also be added as the contextConfigLocation for a new DispatcherServlet
servlet with contextClass AnnotationConfigWebApplicationContext in web.xml.
| Constructor and Description |
|---|
BroadleafRestApiMvcConfiguration()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected WrapperOverrideTypeModifier |
blWrapperOverrideTypeModifier()
Deprecated.
|
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
Deprecated.
Setup a simple strategy: use all the defaults and return JSON by default when not sure.
|
void |
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
Deprecated.
|
protected org.springframework.http.converter.HttpMessageConverter<?> |
getJsonConverter()
Deprecated.
|
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper(boolean useXml)
Deprecated.
|
protected org.springframework.http.converter.json.Jackson2ObjectMapperBuilder |
getObjectMapperBuilder()
Deprecated.
|
protected org.springframework.http.converter.HttpMessageConverter<?> |
getXmlConverter()
Deprecated.
Subclasses might override this method to use JAXB natively for XML serialization by
return new Jaxb2RootElementHttpMessageConverter() |
addArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic BroadleafRestApiMvcConfiguration()
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureMessageConverters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureContentNegotiation in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterprotected org.springframework.http.converter.HttpMessageConverter<?> getJsonConverter()
protected org.springframework.http.converter.HttpMessageConverter<?> getXmlConverter()
return new Jaxb2RootElementHttpMessageConverter()#getObjectMapper(boolean)}protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper(boolean useXml)
protected org.springframework.http.converter.json.Jackson2ObjectMapperBuilder getObjectMapperBuilder()
@Bean protected WrapperOverrideTypeModifier blWrapperOverrideTypeModifier()
Copyright © 2020. All rights reserved.