public class ResponseMessageProcessorAdapter extends AbstractRequestResponseMessageProcessor 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 response,
MuleEvent request)
Processes the response phase after the next message processor and it's response phase have been invoked
|
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setProcessor(MessageProcessor processor) |
void |
start() |
void |
stop() |
createReplyToHandler, process, processBlocking, processFinally, processNonBlocking, processRequest, processResponse
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, setMuleContext, toString
getAnnotation, getAnnotations, setAnnotations
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 response, MuleEvent request) throws MuleException
AbstractRequestResponseMessageProcessor
processResponse
in class AbstractRequestResponseMessageProcessor
response
- response event to be processed.request
- the request eventMuleException
- exception thrown by implementations of this method whiile performing response processingpublic 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–2016 MuleSoft, Inc.. All rights reserved.