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(MuleEvent muleEvent)
Template method to send a response after processing the message.
|
afterFailureProcessingFlow, afterFailureProcessingFlow, afterRouteEvent, afterSuccessfulProcessingFlow, beforeRouteEvent, getMuleEvent, getOriginalMessage, routeEventvoid sendResponseToClient(MuleEvent muleEvent) throws MuleException
muleEvent - the event with the content of the response to be sent.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 MuleException
messagingException - exception thrown during the flow execution.MuleException - exception thrown when processing the message to send the response.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.