public class WsConfigurationSupport extends Object
@EnableWs
to an
application @Configuration
class. An alternative, more
advanced option is to extend directly from this class and override methods as
necessary remembering to add @Configuration
to the
subclass and @Bean
to overridden @Bean
methods.
For more details see the Javadoc of @EnableWs
.
This class registers the following EndpointMapping
s:
PayloadRootAnnotationMethodEndpointMapping
ordered at 0 for mapping requests to @PayloadRoot
annotated
controller methods.
SoapActionAnnotationMethodEndpointMapping
ordered at 1 for mapping requests to @SoapAction
annotated
controller methods.
AnnotationActionEndpointMapping
ordered at 2 for mapping requests to @Action
annotated
controller methods.
Registers one EndpointAdapter
:
DefaultMethodEndpointAdapter
for processing requests with annotated endpoint methods.
Registers the following EndpointExceptionResolver
s:
SoapFaultAnnotationExceptionResolver
for handling exceptions
annotated with @SoapFault
.
SimpleSoapExceptionResolver
for creating default exceptions.
EnableWs
,
WsConfigurer
,
WsConfigurerAdapter
Constructor and Description |
---|
WsConfigurationSupport() |
@Bean public PayloadRootAnnotationMethodEndpointMapping payloadRootAnnotationMethodEndpointMapping()
PayloadRootAnnotationMethodEndpointMapping
ordered at 0 for
mapping requests to annotated endpoints.@Bean public SoapActionAnnotationMethodEndpointMapping soapActionAnnotationMethodEndpointMapping()
SoapActionAnnotationMethodEndpointMapping
ordered at 1 for
mapping requests to annotated endpoints.@Bean public AnnotationActionEndpointMapping annotationActionEndpointMapping()
AnnotationActionEndpointMapping
ordered at 2 for
mapping requests to annotated endpoints.protected final EndpointInterceptor[] getInterceptors()
EndpointMapping
instances with. This method cannot be overridden,
use addInterceptors(List)
instead.protected void addInterceptors(List<EndpointInterceptor> interceptors)
@Bean public DefaultMethodEndpointAdapter defaultMethodEndpointAdapter()
DefaultMethodEndpointAdapter
for processing requests
through annotated endpoint methods. Consider overriding one of these
other more fine-grained methods:
addArgumentResolvers(List)
for adding custom argument resolvers.
addReturnValueHandlers(List)
for adding custom return value handlers.
protected void addArgumentResolvers(List<MethodArgumentResolver> argumentResolvers)
MethodArgumentResolver
s to use in addition to
the ones registered by default.argumentResolvers
- the list of custom converters;
initially an empty list.protected void addReturnValueHandlers(List<MethodReturnValueHandler> returnValueHandlers)
MethodReturnValueHandler
s in addition to the
ones registered by default.returnValueHandlers
- the list of custom handlers;
initially an empty list.@Bean public SoapFaultAnnotationExceptionResolver soapFaultAnnotationExceptionResolver()
SoapFaultAnnotationExceptionResolver
ordered at 0 for handling
endpoint exceptions.@Bean public SimpleSoapExceptionResolver simpleSoapExceptionResolver()
SimpleSoapExceptionResolver
ordered at
lowest precedence for handling endpoint
exceptions.Copyright © 2020 Pivotal Software. All rights reserved.