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 EndpointMappings:
PayloadRootAnnotationMethodEndpointMappingordered at 0 for mapping requests to@PayloadRootannotated controller methods.SoapActionAnnotationMethodEndpointMappingordered at 1 for mapping requests to@SoapActionannotated controller methods.AnnotationActionEndpointMappingordered at 2 for mapping requests to@Actionannotated controller methods.
Registers one EndpointAdapter:
DefaultMethodEndpointAdapterfor processing requests with annotated endpoint methods.
Registers the following EndpointExceptionResolvers:
SoapFaultAnnotationExceptionResolverfor handling exceptions annotated with@SoapFault.SimpleSoapExceptionResolverfor creating default exceptions.
- Since:
- 2.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddArgumentResolvers(List<MethodArgumentResolver> argumentResolvers) Add customMethodArgumentResolvers to use in addition to the ones registered by default.protected voidaddInterceptors(List<EndpointInterceptor> interceptors) Template method to add endpoint interceptors.protected voidaddReturnValueHandlers(List<MethodReturnValueHandler> returnValueHandlers) Add customMethodReturnValueHandlers in addition to the ones registered by default.Returns aAnnotationActionEndpointMappingordered at 2 for mapping requests to annotated endpoints.Returns aDefaultMethodEndpointAdapterfor processing requests through annotated endpoint methods.protected final EndpointInterceptor[]Provide access to the shared handler interceptors used to configureEndpointMappinginstances with.Returns aPayloadRootAnnotationMethodEndpointMappingordered at 0 for mapping requests to annotated endpoints.Returns aSimpleSoapExceptionResolverordered at lowest precedence for handling endpoint exceptions.Returns aSoapActionAnnotationMethodEndpointMappingordered at 1 for mapping requests to annotated endpoints.Returns aSoapFaultAnnotationExceptionResolverordered at 0 for handling endpoint exceptions.
-
Constructor Details
-
WsConfigurationSupport
public WsConfigurationSupport()
-
-
Method Details
-
payloadRootAnnotationMethodEndpointMapping
@Bean public PayloadRootAnnotationMethodEndpointMapping payloadRootAnnotationMethodEndpointMapping()Returns aPayloadRootAnnotationMethodEndpointMappingordered at 0 for mapping requests to annotated endpoints. -
soapActionAnnotationMethodEndpointMapping
Returns aSoapActionAnnotationMethodEndpointMappingordered at 1 for mapping requests to annotated endpoints. -
annotationActionEndpointMapping
Returns aAnnotationActionEndpointMappingordered at 2 for mapping requests to annotated endpoints. -
getInterceptors
Provide access to the shared handler interceptors used to configureEndpointMappinginstances 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 aDefaultMethodEndpointAdapterfor 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 customMethodArgumentResolvers to use in addition to the ones registered by default.- Parameters:
argumentResolvers- the list of custom converters; initially an empty list.
-
addReturnValueHandlers
Add customMethodReturnValueHandlers in addition to the ones registered by default.- Parameters:
returnValueHandlers- the list of custom handlers; initially an empty list.
-
soapFaultAnnotationExceptionResolver
Returns aSoapFaultAnnotationExceptionResolverordered at 0 for handling endpoint exceptions. -
simpleSoapExceptionResolver
Returns aSimpleSoapExceptionResolverordered at lowest precedence for handling endpoint exceptions.
-