public interface RequestResponseFlowProcessingPhaseTemplate extends FlowProcessingPhaseTemplate
FlowProcessingPhaseTemplate for those MessageSource that requires
sending a response of the message processed.| Modifier and Type | Method and Description |
|---|---|
void |
sendFailureResponseToClient(MessagingException messagingException) |
void |
sendResponseToClient(Event muleEvent)
Template method to send a response after processing the message.
|
afterFailureProcessingFlow, afterFailureProcessingFlow, afterRouteEvent, afterSuccessfulProcessingFlow, beforeRouteEvent, getEvent, getOriginalMessage, routeEventvoid sendResponseToClient(Event muleEvent) throws org.mule.runtime.api.exception.MuleException
muleEvent - the event with the content of the response to be sent.org.mule.runtime.api.exception.MuleException - exception thrown when processing the message to send the response. If there's a failure when writing
the response using the underlying transport or connector then the exception to throw must be a
ResponseDispatchException.void sendFailureResponseToClient(MessagingException messagingException) throws org.mule.runtime.api.exception.MuleException
messagingException - exception thrown during the flow execution.org.mule.runtime.api.exception.MuleException - exception thrown when processing the message to send the response.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.