public class FileMessageRequester extends AbstractMessageRequester
FileMessageRequester
is used to read/write files to the filesystemconnected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
REQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY
Constructor and Description |
---|
FileMessageRequester(InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected MuleMessage |
doRequest(long timeout)
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.
|
protected String |
formatUsingFilenameParser(String originalFileName,
String originalDirectory,
String pattern) |
Object |
getDelegateSession()
There is no associated session for a file connector
|
protected String |
getMoveDirectory() |
protected String |
getMoveToPattern() |
applyInboundTransformers, createLifecycleManager, getEndpoint, getRequesterName, getWorkManager, initialise, request
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, createMuleMessage, createMuleMessage, getConnector, passivate, validate
connect, disconnect, getConnectionDescription, isConnected, validateConnection
dispose
getLifecycleState
public FileMessageRequester(InboundEndpoint endpoint) throws MuleException
MuleException
public Object getDelegateSession() throws MuleException
MuleException
protected MuleMessage doRequest(long timeout) throws Exception
doRequest
in class AbstractMessageRequester
timeout
- this is ignored when doing a receive on this dispatcherException
protected String formatUsingFilenameParser(String originalFileName, String originalDirectory, String pattern)
protected void doDispose()
doDispose
in class AbstractTransportMessageHandler
protected void doConnect() throws Exception
doConnect
in class AbstractTransportMessageHandler
Exception
protected void doDisconnect() throws Exception
doDisconnect
in class AbstractTransportMessageHandler
Exception
protected String getMoveDirectory()
protected String getMoveToPattern()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.