public class SftpMessageRequester extends AbstractMessageRequester
SftpMessageRequester
polls files on request (e.g. from a
quartz-inbound-endpoint) from an sftp service on request using jsch. This
requester produces an InputStream payload, which can be materialized in a
MessageDispatcher or Component.connected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
REQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY
Constructor and Description |
---|
SftpMessageRequester(InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected MuleMessage |
doRequest(long timeout)
Make a specific request to the underlying transport
|
applyInboundTransformers, createLifecycleManager, getEndpoint, getRequesterName, getWorkManager, initialise, request
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doConnect, doDisconnect, doDispose, 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 SftpMessageRequester(InboundEndpoint endpoint)
protected MuleMessage doRequest(long timeout) throws Exception
AbstractMessageRequester
doRequest
in class AbstractMessageRequester
timeout
- the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returnedException
- if the call to the underlying protocal cuases an exceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.