org.mule.providers.file
Class FileMessageDispatcher
java.lang.Object
org.mule.providers.AbstractMessageDispatcher
org.mule.providers.file.FileMessageDispatcher
- All Implemented Interfaces:
- Disposable, java.beans.ExceptionListener, UMOMessageDispatcher
- public class FileMessageDispatcher
- extends AbstractMessageDispatcher
FileMessageDispatcher
is used to read/write files to the filesystem and
- Version:
- $Revision: 1.4 $
- Author:
- Ross Mason
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileMessageDispatcher
public FileMessageDispatcher(FileConnector connector)
doDispatch
public void doDispatch(UMOEvent event)
throws java.lang.Exception
- Specified by:
doDispatch
in class AbstractMessageDispatcher
- Throws:
java.lang.Exception
getDelegateSession
public java.lang.Object getDelegateSession()
throws UMOException
- There is no associated session for a file connector
- Returns:
-
- Throws:
UMOException
receive
public UMOMessage receive(UMOEndpointURI endpointUri,
long timeout)
throws java.lang.Exception
- Will attempt to do a receive from a directory, if the endpointUri resolves to a file name
the file will be returned, otherwise the first file in the directory according to the
filename filter configured on the connector.
- Parameters:
endpointUri
- a path to a file or directorytimeout
- this is ignored when doing a receive on this dispatcher
- Returns:
- a message containing file contents or null if there was notthing to receive
- Throws:
java.lang.Exception
doSend
public UMOMessage doSend(UMOEvent event)
throws java.lang.Exception
- Specified by:
doSend
in class AbstractMessageDispatcher
- Throws:
java.lang.Exception
getConnector
public UMOConnector getConnector()
- Specified by:
getConnector
in interface UMOMessageDispatcher
- Overrides:
getConnector
in class AbstractMessageDispatcher
doDispose
public void doDispose()
- Specified by:
doDispose
in class AbstractMessageDispatcher
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.