public class FileMuleMessageFactory extends 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
.muleContext
Constructor and Description |
---|
FileMuleMessageFactory() |
Modifier and Type | Method and Description |
---|---|
protected void |
addProperties(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(MuleMessage message,
File file) |
addAttachments, create, create, create, create
protected Class<?>[] getSupportedTransportMessageTypes()
getSupportedTransportMessageTypes
in class AbstractMuleMessageFactory
protected Object extractPayload(Object transportMessage, String encoding) throws Exception
extractPayload
in class AbstractMuleMessageFactory
Exception
protected void addProperties(DefaultMuleMessage message, Object transportMessage) throws Exception
addProperties
in class AbstractMuleMessageFactory
Exception
protected String getMimeType(Object transportMessage)
getMimeType
in class AbstractMuleMessageFactory
protected void setPropertiesFromFile(MuleMessage message, File file)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.