org.apache.camel.component.file.remote
Class SftpProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer<T>
org.apache.camel.component.file.remote.RemoteFileProducer<RemoteFileExchange>
org.apache.camel.component.file.remote.SftpProducer
- All Implemented Interfaces:
- Processor, Producer<RemoteFileExchange>, Service
public class SftpProducer
- extends RemoteFileProducer<RemoteFileExchange>
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
SftpProducer
public SftpProducer(SftpEndpoint endpoint,
com.jcraft.jsch.Session session)
process
public void process(Exchange exchange)
throws Exception
- Throws:
Exception
connectIfNecessary
protected void connectIfNecessary()
throws com.jcraft.jsch.JSchException
- Specified by:
connectIfNecessary
in class RemoteFileProducer<RemoteFileExchange>
- Throws:
com.jcraft.jsch.JSchException
disconnect
protected void disconnect()
throws com.jcraft.jsch.JSchException
- Specified by:
disconnect
in class RemoteFileProducer<RemoteFileExchange>
- Throws:
com.jcraft.jsch.JSchException
process
public void process(RemoteFileExchange exchange)
throws Exception
- Throws:
Exception
Apache CAMEL