|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractMessageAdapter
org.mule.providers.file.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 |
| Fields inherited from class org.mule.providers.AbstractMessageAdapter |
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE |
| Constructor Summary | |
protected |
FileMessageAdapter(FileMessageAdapter template)
|
|
FileMessageAdapter(Object message)
|
| Method Summary | |
Object |
getPayload()
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a byte array representation |
String |
getPayloadAsString(String encoding)
Converts the message implementation into a String representation |
String |
getUniqueId()
gets the unique identifier for the message. |
ThreadSafeAccess |
newThreadCopy()
By default we return "this". |
protected void |
setMessage(File message)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileMessageAdapter(Object message)
throws MessagingException
protected FileMessageAdapter(FileMessageAdapter template)
| Method Detail |
public Object getPayload()
public byte[] getPayloadAsBytes()
throws Exception
UMOMessageAdapter
Exception - Implemetation may throw an endpoint specific exception
public String getPayloadAsString(String encoding)
throws Exception
encoding - The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
Exception - Implementation may throw an endpoint specific exception
protected void setMessage(File message)
throws MessagingException
MessagingExceptionpublic String getUniqueId()
UMOMessageAdapter
getUniqueId in interface UMOMessageAdaptergetUniqueId in class AbstractMessageAdapterpublic ThreadSafeAccess newThreadCopy()
AbstractMessageAdapter
newThreadCopy in interface ThreadSafeAccessnewThreadCopy in class AbstractMessageAdapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||