|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractMessageAdapter
org.mule.transport.file.FileMessageAdapter
public class FileMessageAdapter
FileMessageAdapter provides a wrapper for a file reference. Users
can obtain the contents of the message through the payload property and can get
the filename and directory in the properties using FileConnector.PROPERTY_FILENAME and
FileConnector.PROPERTY_DIRECTORY.
| Field Summary | |
|---|---|
protected File |
file
|
protected InputStream |
payload
|
| Fields inherited from class org.mule.transport.AbstractMessageAdapter |
|---|
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties |
| Fields inherited from interface org.mule.api.ThreadSafeAccess |
|---|
READ, WRITE |
| Constructor Summary | |
|---|---|
protected |
FileMessageAdapter(FileMessageAdapter template)
|
|
FileMessageAdapter(Object message)
|
| Method Summary | |
|---|---|
Object |
getPayload()
|
String |
getUniqueId()
|
org.mule.api.ThreadSafeAccess |
newThreadCopy()
|
protected void |
setFileMessage(File message)
|
protected void |
setStreamMessage(org.mule.transport.file.FileMessageReceiver.ReceiverFileInputStream message)
|
| Methods inherited from class org.mule.transport.AbstractMessageAdapter |
|---|
addAttachment, addInboundProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getPropertyNames, getReplyTo, getStringProperty, isDisabled, newException, release, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setProperty, setReplyTo, setStringProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected File file
protected InputStream payload
| Constructor Detail |
|---|
public FileMessageAdapter(Object message)
throws org.mule.api.MessagingException
org.mule.api.MessagingExceptionprotected FileMessageAdapter(FileMessageAdapter template)
| Method Detail |
|---|
public Object getPayload()
protected void setFileMessage(File message)
throws org.mule.api.MessagingException
org.mule.api.MessagingException
protected void setStreamMessage(org.mule.transport.file.FileMessageReceiver.ReceiverFileInputStream message)
throws org.mule.api.MessagingException
org.mule.api.MessagingExceptionpublic String getUniqueId()
getUniqueId in interface org.mule.api.transport.MessageAdaptergetUniqueId in class org.mule.transport.AbstractMessageAdapterpublic org.mule.api.ThreadSafeAccess newThreadCopy()
newThreadCopy in interface org.mule.api.ThreadSafeAccessnewThreadCopy in class org.mule.transport.AbstractMessageAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||