public class SetPayloadMessageProcessor extends AbstractAnnotatedObject implements MessageProcessor, MuleContextAware, Initialisable
MuleMessage
according to the provided value.PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
SetPayloadMessageProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
initialise()
Method used to perform any initialisation work.
|
MuleEvent |
process(MuleEvent event)
Invokes the MessageProcessor.
|
void |
setEncoding(String encoding) |
void |
setIgnoreBadInput(boolean ignoreBadInput)
Deprecated.
|
void |
setMimeType(String mimeType) |
void |
setMuleContext(MuleContext context) |
void |
setName(String name)
Deprecated.
|
void |
setReturnClass(String className) |
void |
setValue(String value) |
getAnnotation, getAnnotations, setAnnotations
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessor
process
in interface MessageProcessor
event
- MuleEvent to be processedMuleException
@Deprecated public void setName(String name)
name
- the name of the message processor@Deprecated public void setIgnoreBadInput(boolean ignoreBadInput)
public void setMimeType(String mimeType)
public void setEncoding(String encoding)
public void setReturnClass(String className)
public void setValue(String value)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
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 fromCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.