Class WsConfigurationSupport
java.lang.Object
org.springframework.ws.config.annotation.WsConfigurationSupport
- Direct Known Subclasses:
DelegatingWsConfiguration
This is the main class providing the configuration behind the Spring Web Services Java config. It is typically
imported by adding
@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.
- Since:
- 2.2
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addArgumentResolvers
(List<MethodArgumentResolver> argumentResolvers) Add customMethodArgumentResolver
s to use in addition to the ones registered by default.protected void
addInterceptors
(List<EndpointInterceptor> interceptors) Template method to add endpoint interceptors.protected void
addReturnValueHandlers
(List<MethodReturnValueHandler> returnValueHandlers) Add customMethodReturnValueHandler
s in addition to the ones registered by default.Returns aAnnotationActionEndpointMapping
ordered at 2 for mapping requests to annotated endpoints.Returns aDefaultMethodEndpointAdapter
for processing requests through annotated endpoint methods.protected final EndpointInterceptor[]
Provide access to the shared handler interceptors used to configureEndpointMapping
instances with.Returns aPayloadRootAnnotationMethodEndpointMapping
ordered at 0 for mapping requests to annotated endpoints.Returns aSimpleSoapExceptionResolver
ordered at lowest precedence for handling endpoint exceptions.Returns aSoapActionAnnotationMethodEndpointMapping
ordered at 1 for mapping requests to annotated endpoints.Returns aSoapFaultAnnotationExceptionResolver
ordered at 0 for handling endpoint exceptions.
-
Constructor Details
-
WsConfigurationSupport
public WsConfigurationSupport()
-
-
Method Details
-
payloadRootAnnotationMethodEndpointMapping
@Bean public PayloadRootAnnotationMethodEndpointMapping payloadRootAnnotationMethodEndpointMapping()Returns aPayloadRootAnnotationMethodEndpointMapping
ordered at 0 for mapping requests to annotated endpoints. -
soapActionAnnotationMethodEndpointMapping
Returns aSoapActionAnnotationMethodEndpointMapping
ordered at 1 for mapping requests to annotated endpoints. -
annotationActionEndpointMapping
Returns aAnnotationActionEndpointMapping
ordered at 2 for mapping requests to annotated endpoints. -
getInterceptors
Provide access to the shared handler interceptors used to configureEndpointMapping
instances with. This method cannot be overridden, useaddInterceptors(List)
instead. -
addInterceptors
Template method to add endpoint interceptors. Override this method to add Spring-WS interceptors for pre- and post-processing of endpoint invocation. -
defaultMethodEndpointAdapter
Returns aDefaultMethodEndpointAdapter
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.
-
addArgumentResolvers
Add customMethodArgumentResolver
s to use in addition to the ones registered by default.- Parameters:
argumentResolvers
- the list of custom converters; initially an empty list.
-
addReturnValueHandlers
Add customMethodReturnValueHandler
s in addition to the ones registered by default.- Parameters:
returnValueHandlers
- the list of custom handlers; initially an empty list.
-
soapFaultAnnotationExceptionResolver
Returns aSoapFaultAnnotationExceptionResolver
ordered at 0 for handling endpoint exceptions. -
simpleSoapExceptionResolver
Returns aSimpleSoapExceptionResolver
ordered at lowest precedence for handling endpoint exceptions.
-