org.apache.camel.component.file.remote
Class SftpProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer<T>
          extended by org.apache.camel.component.file.remote.RemoteFileProducer<RemoteFileExchange>
              extended by org.apache.camel.component.file.remote.SftpProducer
All Implemented Interfaces:
Processor, Producer<RemoteFileExchange>, Service

public class SftpProducer
extends RemoteFileProducer<RemoteFileExchange>


Field Summary
 
Fields inherited from class org.apache.camel.component.file.remote.RemoteFileProducer
log
 
Constructor Summary
SftpProducer(SftpEndpoint endpoint, com.jcraft.jsch.Session session)
           
 
Method Summary
protected  void connectIfNecessary()
           
protected  void disconnect()
           
 void process(Exchange exchange)
           
 void process(RemoteFileExchange exchange)
           
 
Methods inherited from class org.apache.camel.component.file.remote.RemoteFileProducer
createFileName, doStart, doStop, remoteServer
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, getEndpoint, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

SftpProducer

public SftpProducer(SftpEndpoint endpoint,
                    com.jcraft.jsch.Session session)
Method Detail

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