public class FileMuleMessageFactory
extends org.mule.transport.AbstractMuleMessageFactory
FileMuleMessageFactory creates a new MuleMessage with a
File or InputStream payload. Users can obtain the filename and
directory in the properties using FileConnector.PROPERTY_FILENAME and
FileConnector.PROPERTY_DIRECTORY.| Constructor and Description |
|---|
FileMuleMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperties(org.mule.DefaultMuleMessage message,
Object transportMessage) |
protected File |
convertToFile(Object transportMessage) |
protected Object |
extractPayload(Object transportMessage,
String encoding) |
protected String |
getMimeType(Object transportMessage) |
protected Class<?>[] |
getSupportedTransportMessageTypes() |
protected void |
setPropertiesFromFile(org.mule.api.MuleMessage message,
File file) |
protected Class<?>[] getSupportedTransportMessageTypes()
getSupportedTransportMessageTypes in class org.mule.transport.AbstractMuleMessageFactoryprotected Object extractPayload(Object transportMessage, String encoding) throws Exception
extractPayload in class org.mule.transport.AbstractMuleMessageFactoryExceptionprotected void addProperties(org.mule.DefaultMuleMessage message,
Object transportMessage)
throws Exception
addProperties in class org.mule.transport.AbstractMuleMessageFactoryExceptionprotected String getMimeType(Object transportMessage)
getMimeType in class org.mule.transport.AbstractMuleMessageFactoryprotected void setPropertiesFromFile(org.mule.api.MuleMessage message,
File file)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.