public class NestedProcessorChain extends Object implements NestedProcessor, MuleContextAware
NestedProcessor
that
wraps a MessageProcessor
and allows to
execute itConstructor and Description |
---|
NestedProcessorChain(MuleEvent event,
MuleContext muleContext,
MessageProcessor chain) |
Modifier and Type | Method and Description |
---|---|
Object |
process()
Dispatch original message to the processor chain
|
Object |
process(Object payload)
Dispatch message to the processor chain
|
Object |
process(Object payload,
Map<String,Object> properties)
Dispatch message to the processor chain
|
Object |
processWithExtraProperties(Map<String,Object> properties)
Dispatch original message to the processor chain
|
void |
setChain(MessageProcessor value)
Sets chain
|
void |
setEvent(MuleEvent value)
Sets event
|
void |
setMuleContext(MuleContext value)
Sets muleContext
|
public NestedProcessorChain(MuleEvent event, MuleContext muleContext, MessageProcessor chain)
public void setMuleContext(MuleContext value)
setMuleContext
in interface MuleContextAware
value
- Value to setpublic void setChain(MessageProcessor value)
value
- Value to setpublic void setEvent(MuleEvent value)
value
- Value to setpublic Object process() throws Exception
NestedProcessor
process
in interface NestedProcessor
Exception
public Object process(Object payload) throws Exception
NestedProcessor
process
in interface NestedProcessor
payload
- The payload of the messageException
public Object processWithExtraProperties(Map<String,Object> properties) throws Exception
NestedProcessor
processWithExtraProperties
in interface NestedProcessor
properties
- Additional invocation propertiesException
public Object process(Object payload, Map<String,Object> properties) throws Exception
NestedProcessor
process
in interface NestedProcessor
payload
- The payload of the messageproperties
- Additional invocation propertiesException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.