org.mule.transport.file
Class FileMuleMessageFactory
java.lang.Object
org.mule.transport.AbstractMuleMessageFactory
org.mule.transport.file.FileMuleMessageFactory
- All Implemented Interfaces:
- MuleMessageFactory
- Direct Known Subclasses:
- FileContentsMuleMessageFactory
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileMuleMessageFactory
public FileMuleMessageFactory(MuleContext context)
getSupportedTransportMessageTypes
protected Class<?>[] getSupportedTransportMessageTypes()
- Specified by:
getSupportedTransportMessageTypes
in class AbstractMuleMessageFactory
extractPayload
protected Object extractPayload(Object transportMessage,
String encoding)
throws Exception
- Specified by:
extractPayload
in class AbstractMuleMessageFactory
- Throws:
Exception
addProperties
protected void addProperties(DefaultMuleMessage message,
Object transportMessage)
throws Exception
- Overrides:
addProperties
in class AbstractMuleMessageFactory
- Throws:
Exception
convertToFile
protected File convertToFile(Object transportMessage)
setPropertiesFromFile
protected void setPropertiesFromFile(MuleMessage message,
File file)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.