public class SoapMessageDispatcher extends MessageDispatcher
MessageDispatcher
. Adds functionality for adding actor roles to a endpoint
invocation chain, and endpoint interception using SoapEndpointInterceptor
objects.SoapMessage
,
SoapEndpointInterceptor
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MUST_UNDERSTAND_FAULT_STRING
Default message used when creating a SOAP MustUnderstand fault.
|
ENDPOINT_NOT_FOUND_LOG_CATEGORY, endpointNotFoundLogger, logger, MESSAGE_TRACING_LOG_CATEGORY, receivedMessageTracingLogger, sentMessageTracingLogger
Constructor and Description |
---|
SoapMessageDispatcher() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleRequest(EndpointInvocationChain mappedEndpoint,
MessageContext messageContext)
Process the headers targeted at the actor or role fullfilled by the endpoint.
|
void |
setMustUnderstandFaultString(String mustUnderstandFaultString)
Sets the message used for
MustUnderstand fault. |
void |
setMustUnderstandFaultStringLocale(Locale mustUnderstandFaultStringLocale)
Sets the locale of the message used for
MustUnderstand fault. |
dispatch, getEndpoint, getEndpointAdapter, getEndpointAdapters, getEndpointExceptionResolvers, getEndpointMappings, processEndpointException, receive, setApplicationContext, setBeanName, setEndpointAdapters, setEndpointExceptionResolvers, setEndpointMappings
public static final String DEFAULT_MUST_UNDERSTAND_FAULT_STRING
public void setMustUnderstandFaultString(String mustUnderstandFaultString)
MustUnderstand
fault. Default to DEFAULT_MUST_UNDERSTAND_FAULT_STRING
.public void setMustUnderstandFaultStringLocale(Locale mustUnderstandFaultStringLocale)
MustUnderstand
fault. Default to Locale.ENGLISH
.protected boolean handleRequest(EndpointInvocationChain mappedEndpoint, MessageContext messageContext)
MustUnderstand
headers 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.handleRequest
in class MessageDispatcher
mappedEndpoint
- the mapped EndpointInvocationChainmessageContext
- the message contexttrue
if all necessary headers are understood; false
otherwiseSoapEndpointInvocationChain.getActorsOrRoles()
,
SoapHeader.examineMustUnderstandHeaderElements(String)
Copyright © 2020 Pivotal Software. All rights reserved.