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

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

public class FtpProducer
extends RemoteFileProducer<RemoteFileExchange>


Constructor Summary
FtpProducer(FtpEndpoint endpoint, org.apache.commons.net.ftp.FTPClient client)
           
 
Method Summary
protected static boolean buildDirectory(org.apache.commons.net.ftp.FTPClient ftpClient, 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

FtpProducer

public FtpProducer(FtpEndpoint endpoint,
                   org.apache.commons.net.ftp.FTPClient client)
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(org.apache.commons.net.ftp.FTPClient ftpClient,
                                        String dirName)
                                 throws IOException
Throws:
IOException


Copyright © 2007 Apache Software Foundation. All Rights Reserved.