Class SoapMessageDispatcher
java.lang.Object
org.springframework.ws.server.MessageDispatcher
org.springframework.ws.soap.server.SoapMessageDispatcher
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.context.ApplicationContextAware,WebServiceMessageReceiver
SOAP-specific subclass of the
MessageDispatcher. Adds functionality for adding actor roles to a endpoint
invocation chain, and endpoint interception using SoapEndpointInterceptor objects.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault message used when creating a SOAP MustUnderstand fault.Fields inherited from class org.springframework.ws.server.MessageDispatcher
ENDPOINT_NOT_FOUND_LOG_CATEGORY, endpointNotFoundLogger, logger, MESSAGE_TRACING_LOG_CATEGORY, receivedMessageTracingLogger, sentMessageTracingLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhandleRequest(EndpointInvocationChain mappedEndpoint, MessageContext messageContext) Process the headers targeted at the actor or role fullfilled by the endpoint.voidsetMustUnderstandFaultString(String mustUnderstandFaultString) Sets the message used forMustUnderstandfault.voidsetMustUnderstandFaultStringLocale(Locale mustUnderstandFaultStringLocale) Sets the locale of the message used forMustUnderstandfault.Methods inherited from class org.springframework.ws.server.MessageDispatcher
dispatch, getEndpoint, getEndpointAdapter, getEndpointAdapters, getEndpointExceptionResolvers, getEndpointMappings, processEndpointException, receive, setApplicationContext, setBeanName, setEndpointAdapters, setEndpointExceptionResolvers, setEndpointMappings
-
Field Details
-
DEFAULT_MUST_UNDERSTAND_FAULT_STRING
Default message used when creating a SOAP MustUnderstand fault.- See Also:
-
-
Constructor Details
-
SoapMessageDispatcher
public SoapMessageDispatcher()
-
-
Method Details
-
setMustUnderstandFaultString
Sets the message used forMustUnderstandfault. Default toDEFAULT_MUST_UNDERSTAND_FAULT_STRING. -
setMustUnderstandFaultStringLocale
Sets the locale of the message used forMustUnderstandfault. Default toLocale.ENGLISH. -
handleRequest
protected boolean handleRequest(EndpointInvocationChain mappedEndpoint, MessageContext messageContext) Process the headers targeted at the actor or role fullfilled by the endpoint. Also processed theMustUnderstandheaders in the incoming SOAP request message. Iterates over all SOAP headers which should be understood for this role, and determines whether these are supported. Generates a SOAP MustUnderstand fault if a header is not understood.- Overrides:
handleRequestin classMessageDispatcher- Parameters:
mappedEndpoint- the mapped EndpointInvocationChainmessageContext- the message context- Returns:
trueif all necessary headers are understood;falseotherwise- See Also:
-