org.mule.execution
Interface RequestResponseFlowProcessingPhaseTemplate

All Superinterfaces:
FlowProcessingPhaseTemplate, MessageProcessTemplate
All Known Implementing Classes:
HttpMessageProcessTemplate, HttpsMessageProcessTemplate

public interface RequestResponseFlowProcessingPhaseTemplate
extends FlowProcessingPhaseTemplate

Extension of FlowProcessingPhaseTemplate for those MessageSource that requires sending a response of the message processed.


Method Summary
 void sendResponseToClient(MuleEvent muleEvent)
          Template method to send a response after processing the message.
 
Methods inherited from interface org.mule.execution.FlowProcessingPhaseTemplate
afterFailureProcessingFlow, afterFailureProcessingFlow, afterRouteEvent, afterSuccessfulProcessingFlow, beforeRouteEvent, getMuleEvent, getOriginalMessage, routeEvent
 

Method Detail

sendResponseToClient

void sendResponseToClient(MuleEvent muleEvent)
                          throws MuleException
Template method to send a response after processing the message. This method is executed outside the flow. In case of failure the SystemExceptionHandler will be executed.

Parameters:
muleEvent - the event with the content of the response to be sent.
Throws:
MuleException - exception thrown during the response is being sent.


Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.