@Configuration
@ComponentScan(value="org.finra.herd.rest",
excludeFilters=)
@Import(value=RestAopSpringModuleConfig.class)
public class RestSpringModuleConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
| Constructor and Description |
|---|
RestSpringModuleConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
This is called from requestMappingHandlerAdapter to configure the message converters.
|
void |
configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
Configure the path match by disabling suffix pattern matching.
|
org.springframework.web.servlet.HandlerExceptionResolver |
handlerExceptionResolver()
We need to override the base method so this "@Bean" will get invoked and ultimately call configureMessageConverters.
|
HerdSchemaValidationEventHandler |
herdSchemaValidationEventHandler()
Gets a new
HerdSchemaValidationEventHandler that handles JAXB validation events which can then be
attached to Herd's JAXB marshaller/unmarshaller |
org.springframework.oxm.jaxb.Jaxb2Marshaller |
jaxb2Marshaller()
Gets a new JAXB marshaller that is aware of our XSD and can perform schema validation.
|
org.springframework.http.converter.xml.MarshallingHttpMessageConverter |
marshallingMessageConverter()
Gets a new marshalling HTTP message converter that is aware of our custom JAXB marshaller.
|
org.springframework.util.PathMatcher |
mvcPathMatcher() |
org.springframework.web.servlet.resource.ResourceUrlProvider |
mvcResourceUrlProvider() |
org.springframework.web.util.UrlPathHelper |
mvcUrlPathHelper() |
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter |
requestMappingHandlerAdapter()
We need to override the base method so this "@Bean" will get invoked and ultimately call configureMessageConverters.
|
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping |
requestMappingHandlerMapping() |
addArgumentResolvers, addCorsMappings, addDefaultHandlerExceptionResolvers, addDefaultHttpMessageConverters, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, beanNameHandlerMapping, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureViewResolvers, createExceptionHandlerExceptionResolver, createRequestMappingHandlerAdapter, createRequestMappingHandlerMapping, defaultServletHandlerMapping, extendHandlerExceptionResolvers, extendMessageConverters, getApplicationContext, getArgumentResolvers, getConfigurableWebBindingInitializer, getCorsConfigurations, getDefaultMediaTypes, getInterceptors, getMessageCodesResolver, getMessageConverters, getPathMatchConfigurer, getReturnValueHandlers, getServletContext, getValidator, httpRequestHandlerAdapter, mvcContentNegotiationManager, mvcConversionService, mvcHandlerMappingIntrospector, mvcUriComponentsContributor, mvcValidator, mvcViewResolver, resourceHandlerMapping, setApplicationContext, setServletContext, simpleControllerHandlerAdapter, viewControllerHandlerMapping@Bean public org.springframework.web.servlet.HandlerExceptionResolver handlerExceptionResolver()
handlerExceptionResolver in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter()
requestMappingHandlerAdapter in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupportprotected void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupportconverters - the converter list we configure.@Bean public org.springframework.http.converter.xml.MarshallingHttpMessageConverter marshallingMessageConverter()
@Bean public HerdSchemaValidationEventHandler herdSchemaValidationEventHandler()
HerdSchemaValidationEventHandler that handles JAXB validation events which can then be
attached to Herd's JAXB marshaller/unmarshaller@Bean public org.springframework.oxm.jaxb.Jaxb2Marshaller jaxb2Marshaller()
@Bean public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping requestMappingHandlerMapping()
requestMappingHandlerMapping in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport@Bean public org.springframework.web.servlet.resource.ResourceUrlProvider mvcResourceUrlProvider()
mvcResourceUrlProvider in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport@Bean public org.springframework.util.PathMatcher mvcPathMatcher()
mvcPathMatcher in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport@Bean public org.springframework.web.util.UrlPathHelper mvcUrlPathHelper()
mvcUrlPathHelper in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupportpublic void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer)
configurePathMatch in class org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupportconfigurer - the path match configurer.Copyright © 2021. All rights reserved.