org.mule.providers.file
Class FileContentsMessageAdapter
java.lang.Object
org.mule.providers.AbstractMessageAdapter
org.mule.providers.file.FileMessageAdapter
org.mule.providers.file.FileContentsMessageAdapter
- All Implemented Interfaces:
- Serializable, UMOMessageAdapter
- public class FileContentsMessageAdapter
- extends FileMessageAdapter
FileContentsMessageAdapter provides a wrapper for file data. Users
can obtain the contents of the message through the payload property and can get
the filename and directory in the properties using PROPERTY_FILENAME and
PROPERTY_DIRECTORY.
- See Also:
- Serialized Form
| Methods inherited from class org.mule.providers.AbstractMessageAdapter |
addAttachment, addProperties, clearProperties, convertToBytes, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, removeAttachment, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setReplyTo, setStringProperty, toString |
FileContentsMessageAdapter
public FileContentsMessageAdapter(Object message)
throws MessagingException
setMessage
protected void setMessage(File message)
throws MessagingException
- Overrides:
setMessage in class FileMessageAdapter
- Throws:
MessagingException
getPayload
public Object getPayload()
- Specified by:
getPayload in interface UMOMessageAdapter- Overrides:
getPayload in class FileMessageAdapter
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.