public abstract class AbstractTransportMessageProcessTemplate<MessageReceiverType extends AbstractMessageReceiver,ConnectorType extends AbstractConnector> extends Object implements FlowProcessingPhaseTemplate, ValidationPhaseTemplate
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
AbstractTransportMessageProcessTemplate(MessageReceiverType messageReceiver) |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
acquireMessage()
This method will only be called once for the
MessageProcessContext |
void |
afterFailureProcessingFlow(MessagingException messagingException)
Call when the processing of the message through the flow fails.
|
void |
afterFailureProcessingFlow(MuleException exception)
Call when the processing of the message through the flow fails in an exception strategy
|
MuleEvent |
afterRouteEvent(MuleEvent muleEvent)
Post processing of the routed
MuleEvent |
void |
afterSuccessfulProcessingFlow(MuleEvent response)
Call after successfully processing the message through the flow
This method will always be called when the flow execution was successful.
|
MuleEvent |
beforeRouteEvent(MuleEvent muleEvent)
Pre processing of the
MuleEvent to route |
protected MuleEvent |
createEventFromMuleMessage(MuleMessage muleMessage) |
protected MuleMessage |
createMessageFromSource(Object message) |
void |
discardInvalidMessage()
Discards the message because the validation failed
|
protected ConnectorType |
getConnector() |
FlowConstruct |
getFlowConstruct() |
protected InboundEndpoint |
getInboundEndpoint() |
protected MessageReceiverType |
getMessageReceiver() |
protected MuleContext |
getMuleContext() |
MuleEvent |
getMuleEvent() |
Object |
getOriginalMessage() |
protected OutputStream |
getOutputStream() |
protected void |
propagateRootMessageIdProperty(MuleMessage message) |
MuleEvent |
routeEvent(MuleEvent muleEvent)
Routes the
MuleEvent through the processors chain |
boolean |
validateMessage()
Validates the message content.
|
protected void |
warnIfMuleClientSendUsed(MuleMessage message) |
public AbstractTransportMessageProcessTemplate(MessageReceiverType messageReceiver)
public MuleEvent getMuleEvent() throws MuleException
getMuleEvent in interface FlowProcessingPhaseTemplateMuleEvent created from the original messageMuleExceptionpublic Object getOriginalMessage() throws MuleException
getOriginalMessage in interface FlowProcessingPhaseTemplateMuleExceptionpublic void afterFailureProcessingFlow(MessagingException messagingException) throws MuleException
FlowProcessingPhaseTemplateafterFailureProcessingFlow in interface FlowProcessingPhaseTemplateMuleExceptionpublic void afterFailureProcessingFlow(MuleException exception) throws MuleException
FlowProcessingPhaseTemplateafterFailureProcessingFlow in interface FlowProcessingPhaseTemplateMuleExceptionpublic MuleEvent routeEvent(MuleEvent muleEvent) throws MuleException
FlowProcessingPhaseTemplateMuleEvent through the processors chainrouteEvent in interface FlowProcessingPhaseTemplatemuleEvent - MuleEvent created from the raw message of this contextMuleEventMuleExceptionpublic void afterSuccessfulProcessingFlow(MuleEvent response) throws MuleException
FlowProcessingPhaseTemplateafterSuccessfulProcessingFlow in interface FlowProcessingPhaseTemplateMuleExceptionpublic abstract Object acquireMessage() throws MuleException
MessageProcessContextMessageSourceMuleExceptionprotected void propagateRootMessageIdProperty(MuleMessage message)
public boolean validateMessage()
ValidationPhaseTemplateValidationPhaseTemplate.discardInvalidMessage()
will be executed so the implementation can save the reason why the message is invalid
to report why the message has been discarded when ValidationPhaseTemplate.discardInvalidMessage() is calledvalidateMessage in interface ValidationPhaseTemplatepublic void discardInvalidMessage()
throws MuleException
ValidationPhaseTemplatediscardInvalidMessage in interface ValidationPhaseTemplateMuleExceptionprotected void warnIfMuleClientSendUsed(MuleMessage message)
protected MuleEvent createEventFromMuleMessage(MuleMessage muleMessage) throws MuleException
MuleExceptionprotected OutputStream getOutputStream()
protected MuleMessage createMessageFromSource(Object message) throws MuleException
MuleExceptionprotected MessageReceiverType getMessageReceiver()
protected InboundEndpoint getInboundEndpoint()
protected ConnectorType getConnector()
protected MuleContext getMuleContext()
public FlowConstruct getFlowConstruct()
public MuleEvent beforeRouteEvent(MuleEvent muleEvent) throws MuleException
FlowProcessingPhaseTemplateMuleEvent to routebeforeRouteEvent in interface FlowProcessingPhaseTemplateMuleExceptionpublic MuleEvent afterRouteEvent(MuleEvent muleEvent) throws MuleException
FlowProcessingPhaseTemplateMuleEventafterRouteEvent in interface FlowProcessingPhaseTemplateMuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.