public abstract class TemplateMessagingExceptionStrategy extends AbstractExceptionListener implements MessagingExceptionHandlerAcceptor
commitTxFilter, enableNotifications, globalName, initialised, logger, messageProcessors, NOT_SET, rollbackTxFilterflowConstruct, messagingExceptionHandler, muleContextPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
TemplateMessagingExceptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MuleEvent event) |
boolean |
acceptsAll() |
protected boolean |
acceptsEvent(MuleEvent event)
Determines if the exception strategy should process or not a message inside a choice exception strategy.
|
protected MuleEvent |
afterRouting(Exception exception,
MuleEvent event) |
protected MuleEvent |
beforeRouting(Exception exception,
MuleEvent event) |
protected void |
doInitialise(MuleContext muleContext) |
MuleEvent |
handleException(Exception exception,
MuleEvent event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
|
protected void |
markExceptionAsHandled(Exception exception) |
protected void |
nullifyExceptionPayloadIfRequired(MuleEvent event) |
protected void |
processReplyTo(MuleEvent event,
Exception e) |
protected MuleEvent |
route(MuleEvent event,
Exception t) |
void |
setHandleException(boolean handleException) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setWhen(String when) |
addEndpoint, closeStream, commit, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getGlobalName, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollback, rollback, rollbackTransaction, routeException, routeException, setCommitTxFilter, setEnableNotifications, setGlobalName, setMessageProcessors, setRollbackTxFilteraddMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotationsdispose, getFlowConstruct, getMessagingExceptionHandler, getMuleContext, setFlowConstruct, setMuleContext, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposesetMuleContextsetFlowConstructpublic final MuleEvent handleException(Exception exception, MuleEvent event)
MessagingExceptionHandlerhandleException in interface MessagingExceptionHandlerexception - which occurredevent - which was being processed when the exception occurredprotected void markExceptionAsHandled(Exception exception)
protected void nullifyExceptionPayloadIfRequired(MuleEvent event)
protected void doInitialise(MuleContext muleContext) throws InitialisationException
doInitialise in class AbstractExceptionListenerInitialisationExceptionpublic void setWhen(String when)
public boolean accept(MuleEvent event)
accept in interface Acceptorevent - MuleEvent to route through exception handlerMessagingExceptionHandler should handler exception
false otherwiseprotected boolean acceptsEvent(MuleEvent event)
event - The MuleEvent being processedpublic boolean acceptsAll()
acceptsAll in interface Acceptorpublic void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler in interface MessagingExceptionHandlerAwaresetMessagingExceptionHandler in class AbstractExceptionListenerpublic void setHandleException(boolean handleException)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.