org.apache.camel.component.file.remote
Class FtpProducer
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.FtpProducer
- All Implemented Interfaces:
- org.apache.camel.Processor, org.apache.camel.Producer<RemoteFileExchange>, org.apache.camel.Service
public class FtpProducer
- extends RemoteFileProducer<RemoteFileExchange>
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 |
FtpProducer
public FtpProducer(FtpEndpoint endpoint,
org.apache.commons.net.ftp.FTPClient client)
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.