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:
Processor, Producer<RemoteFileExchange>, Service

public class FtpProducer
extends RemoteFileProducer<RemoteFileExchange>


Field Summary
 
Fields inherited from class org.apache.camel.component.file.remote.RemoteFileProducer
log
 
Constructor Summary
FtpProducer(FtpEndpoint endpoint, org.apache.commons.net.ftp.FTPClient client)
           
 
Method Summary
protected  void connectIfNecessary()
           
 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

FtpProducer

public FtpProducer(FtpEndpoint endpoint,
                   org.apache.commons.net.ftp.FTPClient client)
Method Detail

process

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

connectIfNecessary

protected void connectIfNecessary()
                           throws IOException
Specified by:
connectIfNecessary in class RemoteFileProducer<RemoteFileExchange>
Throws:
IOException

disconnect

public void disconnect()
                throws IOException
Specified by:
disconnect in class RemoteFileProducer<RemoteFileExchange>
Throws:
IOException

process

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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.