|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractTransportMessageProcessTemplate<MessageReceiverType,ConnectorType>
public abstract class AbstractTransportMessageProcessTemplate<MessageReceiverType extends AbstractMessageReceiver,ConnectorType extends AbstractConnector>
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
AbstractTransportMessageProcessTemplate(MessageReceiverType messageReceiver,
WorkManager flowExecutionWorkManager)
|
|
| Method Summary | |
|---|---|
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()
|
ClassLoader |
getExecutionClassLoader()
|
FlowConstruct |
getFlowConstruct()
|
WorkManager |
getFlowExecutionWorkManager()
|
protected InboundEndpoint |
getInboundEndpoint()
|
protected MessageReceiverType |
getMessageReceiver()
|
MessageSource |
getMessageSource()
|
protected MuleContext |
getMuleContext()
|
MuleEvent |
getMuleEvent()
|
Object |
getOriginalMessage()
|
protected OutputStream |
getOutputStream()
|
TransactionConfig |
getTransactionConfig()
|
protected void |
propagateRootMessageIdProperty(MuleMessage message)
|
MuleEvent |
routeEvent(MuleEvent muleEvent)
Routes the MuleEvent through the processors chain |
boolean |
supportsAsynchronousProcessing()
|
boolean |
validateMessage()
Validates the message content. |
protected void |
warnIfMuleClientSendUsed(MuleMessage message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public AbstractTransportMessageProcessTemplate(MessageReceiverType messageReceiver,
WorkManager flowExecutionWorkManager)
| Method Detail |
|---|
public MuleEvent getMuleEvent()
throws MuleException
getMuleEvent in interface FlowProcessingPhaseTemplateMuleEvent created from the original message
MuleExceptionpublic MessageSource getMessageSource()
getMessageSource in interface MessageProcessContextMessageSource that retrieve the message. Can not be null
public Object getOriginalMessage()
throws MuleException
getOriginalMessage in interface FlowProcessingPhaseTemplateMuleException
public void afterFailureProcessingFlow(MessagingException messagingException)
throws MuleException
FlowProcessingPhaseTemplate
afterFailureProcessingFlow in interface FlowProcessingPhaseTemplateMuleException
public void afterFailureProcessingFlow(MuleException exception)
throws MuleException
FlowProcessingPhaseTemplate
afterFailureProcessingFlow in interface FlowProcessingPhaseTemplateMuleException
public MuleEvent routeEvent(MuleEvent muleEvent)
throws MuleException
FlowProcessingPhaseTemplateMuleEvent through the processors chain
routeEvent in interface FlowProcessingPhaseTemplatemuleEvent - MuleEvent created from the raw message of this context
MuleEvent
MuleException
public void afterSuccessfulProcessingFlow(MuleEvent response)
throws MuleException
FlowProcessingPhaseTemplate
afterSuccessfulProcessingFlow in interface FlowProcessingPhaseTemplateMuleException
public abstract Object acquireMessage()
throws MuleException
MessageProcessContext
MessageSource
MuleExceptionprotected 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 called
validateMessage in interface ValidationPhaseTemplate
public void discardInvalidMessage()
throws MuleException
ValidationPhaseTemplate
discardInvalidMessage 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()
getFlowConstruct in interface MessageProcessContextFlowConstruct were the incoming message is going to be executed. Can not be nullpublic boolean supportsAsynchronousProcessing()
supportsAsynchronousProcessing in interface MessageProcessContext
public MuleEvent beforeRouteEvent(MuleEvent muleEvent)
throws MuleException
FlowProcessingPhaseTemplateMuleEvent to route
beforeRouteEvent in interface FlowProcessingPhaseTemplateMuleException
public MuleEvent afterRouteEvent(MuleEvent muleEvent)
throws MuleException
FlowProcessingPhaseTemplateMuleEvent
afterRouteEvent in interface FlowProcessingPhaseTemplateMuleExceptionpublic WorkManager getFlowExecutionWorkManager()
getFlowExecutionWorkManager in interface MessageProcessContextWorkManager were the incoming message must be processed.
If null it will be executed in the same thread were the message was receivedpublic TransactionConfig getTransactionConfig()
getTransactionConfig in interface MessageProcessContextTransactionConfig associated to the MessageSource that received the message.
If null then no transaction config will be used.public ClassLoader getExecutionClassLoader()
getExecutionClassLoader in interface MessageProcessContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||