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:
org.apache.camel.Processor, org.apache.camel.Producer<RemoteFileExchange>, org.apache.camel.Service

public class SftpProducer
extends RemoteFileProducer<RemoteFileExchange>


Constructor Summary
SftpProducer(SftpEndpoint endpoint, com.jcraft.jsch.ChannelSftp channelSftp)
           
 
Method Summary
protected static boolean buildDirectory(com.jcraft.jsch.ChannelSftp sftpClient, String dirName)
           
protected  void doStart()
           
protected  void doStop()
           
 void process(org.apache.camel.Exchange exchange)
           
 void process(RemoteFileExchange exchange)
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, getEndpoint
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
isStarted, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

SftpProducer

public SftpProducer(SftpEndpoint endpoint,
                    com.jcraft.jsch.ChannelSftp channelSftp)
Method Detail

process

public void process(org.apache.camel.Exchange exchange)
             throws Exception
Throws:
Exception

process

public void process(RemoteFileExchange exchange)
             throws Exception
Throws:
Exception

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class org.apache.camel.impl.DefaultProducer<RemoteFileExchange>
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class org.apache.camel.impl.DefaultProducer<RemoteFileExchange>
Throws:
Exception

buildDirectory

protected static boolean buildDirectory(com.jcraft.jsch.ChannelSftp sftpClient,
                                        String dirName)
                                 throws IOException
Throws:
IOException


Copyright © 2007 Apache Software Foundation. All Rights Reserved.