org.mule.transport.file
Class FileMessageDispatcher
java.lang.Object
org.mule.transport.AbstractTransportMessageHandler
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.file.FileMessageDispatcher
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor, Connectable, MessageDispatcher
public class FileMessageDispatcher
- extends AbstractMessageDispatcher
FileMessageDispatcher
is used to read/write files to the filesystem
Methods inherited from class org.mule.transport.AbstractTransportMessageHandler |
activate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection |
Methods inherited from interface org.mule.api.lifecycle.Startable |
start |
Methods inherited from interface org.mule.api.lifecycle.Stoppable |
stop |
FileMessageDispatcher
public FileMessageDispatcher(OutboundEndpoint endpoint)
doDispatch
protected void doDispatch(MuleEvent event)
throws Exception
- Specified by:
doDispatch
in class AbstractMessageDispatcher
- Throws:
Exception
getDelegateSession
public Object getDelegateSession()
throws MuleException
- There is no associated session for a file connector
- Throws:
MuleException
getNextFile
protected static File getNextFile(String dir,
Object filter)
throws MuleException
- Throws:
MuleException
doSend
protected MuleMessage doSend(MuleEvent event)
throws Exception
- Specified by:
doSend
in class AbstractMessageDispatcher
- Throws:
Exception
doDispose
protected void doDispose()
- Overrides:
doDispose
in class AbstractTransportMessageHandler
doConnect
protected void doConnect()
throws Exception
- Overrides:
doConnect
in class AbstractTransportMessageHandler
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Overrides:
doDisconnect
in class AbstractTransportMessageHandler
- Throws:
Exception
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.