| java.lang.Object org.mule.DefaultMuleMessage
DefaultMuleMessage | public class DefaultMuleMessage implements MuleMessage,ThreadSafeAccess(Code) | | DefaultMuleMessage is a wrapper that contains a payload and properties
associated with the payload.
|
Method Summary | |
public void | addAttachment(String name, DataHandler dataHandler) | public void | addProperties(Map properties) | protected void | applyAllTransformers(List transformers) | public void | applyTransformers(List transformers) | public void | applyTransformers(List transformers, Class outputType) | public void | assertAccess(boolean write) | public void | clearProperties() | public MessageAdapter | getAdapter() | public DataHandler | getAttachment(String name) | public Set | getAttachmentNames() | public boolean | getBooleanProperty(String name, boolean defaultValue) | public int | getCorrelationGroupSize() | public String | getCorrelationId() | public int | getCorrelationSequence() | public double | getDoubleProperty(String name, double defaultValue) | public String | getEncoding() | public ExceptionPayload | getExceptionPayload() | public int | getIntProperty(String name, int defaultValue) | public long | getLongProperty(String name, long defaultValue) | public Object | getOrginalPayload() | public MessageAdapter | getOriginalAdapter() | public Object | getPayload(Class outputType) | protected Object | getPayload(Class outputType, String encoding) Will attempt to obtain the payload of this message with the desired Class type. | public Object | getPayload() | public byte[] | getPayloadAsBytes() | final public String | getPayloadAsString() | public String | getPayloadAsString(String encoding) | public Object | getProperty(String key) | public Object | getProperty(String name, Object defaultValue) | public Set | getPropertyNames() | public Object | getReplyTo() | public String | getStringProperty(String name, String defaultValue) | public String | getUniqueId() | protected boolean | isPayloadConsumed(Class inputCls) Checks if the payload has been consumed for this message. | public ThreadSafeAccess | newThreadCopy() | public void | release() | public void | removeAttachment(String name) | public Object | removeProperty(String key) | public void | resetAccessControl() | public void | setBooleanProperty(String name, boolean value) | public void | setCorrelationGroupSize(int size) | public void | setCorrelationId(String id) | public void | setCorrelationSequence(int sequence) | public void | setDoubleProperty(String name, double value) | public void | setEncoding(String encoding) | public void | setExceptionPayload(ExceptionPayload exceptionPayload) | public void | setIntProperty(String name, int value) | public void | setLongProperty(String name, long value) | public synchronized void | setPayload(Object payload) | public void | setProperty(String key, Object value, PropertyScope scope) | public void | setProperty(String key, Object value) | public void | setReplyTo(Object replyTo) | public void | setStringProperty(String name, String value) | public String | toString() |
DefaultMuleMessage | public DefaultMuleMessage(Object message)(Code) | | |
DefaultMuleMessage | public DefaultMuleMessage(Object message, Map properties)(Code) | | |
addProperties | public void addProperties(Map properties)(Code) | |
|
assertAccess | public void assertAccess(boolean write)(Code) | |
|
clearProperties | public void clearProperties()(Code) | |
|
getAttachmentNames | public Set getAttachmentNames()(Code) | |
|
getBooleanProperty | public boolean getBooleanProperty(String name, boolean defaultValue)(Code) | |
|
getCorrelationGroupSize | public int getCorrelationGroupSize()(Code) | |
|
getCorrelationSequence | public int getCorrelationSequence()(Code) | |
|
getDoubleProperty | public double getDoubleProperty(String name, double defaultValue)(Code) | | |
getIntProperty | public int getIntProperty(String name, int defaultValue)(Code) | |
|
getLongProperty | public long getLongProperty(String name, long defaultValue)(Code) | |
|
getPayload | protected Object getPayload(Class outputType, String encoding) throws TransformerException(Code) | | Will attempt to obtain the payload of this message with the desired Class type. This will
try and resolve a trnsformr that can do this transformation. If a transformer cannot be found
an exception is thrown. Any transfromers added to the reqgistry will be checked for compatability
Parameters: outputType - the desired return type Parameters: encoding - the encoding to use if required The converted payload of this message. Note that this method will not alter the payload of thismessage *unless* the payload is an inputstream in which case the stream will be read and the payload will becomethe fully read stream. throws: TransformerException - if a transformer cannot be found or there is an error during transformation of thepayload |
getPropertyNames | public Set getPropertyNames()(Code) | |
|
isPayloadConsumed | protected boolean isPayloadConsumed(Class inputCls)(Code) | | Checks if the payload has been consumed for this message. This only applies to Streaming payload types
since once the stream has been read, the payload of the message should be updated to represent the data read
from the stream
Parameters: inputCls - the input type of the message payload true if the payload message type was stream-based, false otherwise |
release | public void release()(Code) | |
|
resetAccessControl | public void resetAccessControl()(Code) | |
|
setBooleanProperty | public void setBooleanProperty(String name, boolean value)(Code) | |
|
setCorrelationGroupSize | public void setCorrelationGroupSize(int size)(Code) | | |
setCorrelationId | public void setCorrelationId(String id)(Code) | |
|
setCorrelationSequence | public void setCorrelationSequence(int sequence)(Code) | |
|
setDoubleProperty | public void setDoubleProperty(String name, double value)(Code) | |
|
setIntProperty | public void setIntProperty(String name, int value)(Code) | |
|
setLongProperty | public void setLongProperty(String name, long value)(Code) | |
|
setPayload | public synchronized void setPayload(Object payload)(Code) | |
|
|
|