public class ResponseMessageProcessorAdapter extends AbstractResponseMessageProcessor implements Lifecycle, FlowConstructAware
Modifier and Type | Field and Description |
---|---|
protected FlowConstruct |
flowConstruct |
protected MessageProcessor |
responseProcessor |
logger, muleContext, next, notificationHandler
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
ResponseMessageProcessorAdapter() |
ResponseMessageProcessorAdapter(MessageProcessor responseProcessor) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
void |
initialise()
Method used to perform any initialisation work.
|
protected MuleEvent |
processResponse(MuleEvent event) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setProcessor(MessageProcessor processor) |
void |
start() |
void |
stop() |
process
addMessageProcessorPathElements, getAnnotation, getAnnotations, getListener, getMuleContext, isEventValid, processNext, setAnnotations, setListener, setMuleContext, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setListener
protected MessageProcessor responseProcessor
protected FlowConstruct flowConstruct
public ResponseMessageProcessorAdapter()
public ResponseMessageProcessorAdapter(MessageProcessor responseProcessor)
public void setProcessor(MessageProcessor processor)
protected MuleEvent processResponse(MuleEvent event) throws MuleException
processResponse
in class AbstractResponseMessageProcessor
MuleException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void dispose()
Disposable
dispose
in interface Disposable
public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct
in interface FlowConstructAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.