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

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.impl.ScheduledPollConsumer
              extended by org.apache.camel.component.file.GenericFileConsumer<T>
                  extended by org.apache.camel.component.file.remote.RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile>
                      extended by org.apache.camel.component.file.remote.FtpConsumer
All Implemented Interfaces:
Runnable, org.apache.camel.BatchConsumer, org.apache.camel.Consumer, org.apache.camel.PollingConsumerPollingStrategy, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ShutdownAware, org.apache.camel.SuspendableService

public class FtpConsumer
extends RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile>

FTP consumer


Field Summary
protected  String endpointPath
           
 
Fields inherited from class org.apache.camel.component.file.remote.RemoteFileConsumer
loggedIn
 
Fields inherited from class org.apache.camel.component.file.GenericFileConsumer
customProcessor, endpoint, fileExpressionResult, log, maxMessagesPerPoll, operations, pendingExchanges, shutdownRunningTask
 
Constructor Summary
FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint, org.apache.camel.Processor processor, RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations)
           
 
Method Summary
protected  boolean doPollDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
           
protected  boolean pollDirectory(String fileName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
           
protected  boolean pollSubDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.component.file.remote.RemoteFileConsumer
connectIfNecessary, disconnect, doStop, getEndpoint, getOperations, isMatched, postPollCheck, prePollCheck, processExchange, recoverableConnectIfNecessary, remoteServer
 
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer
canPollMoreFiles, customProcessExchange, deferShutdown, doStart, getCustomProcessor, getPendingExchangesSize, isBatchAllowed, isInProgress, isMatched, isValidFile, poll, prepareShutdown, processBatch, setCustomProcessor, setMaxMessagesPerPoll, setOperations
 
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer
afterPoll, beforePoll, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getTimeUnit, isPollAllowed, isPolling, isStartScheduler, isUseFixedDelay, onInit, run, setDelay, setInitialDelay, setPollStrategy, setRunLoggingLevel, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, setExceptionHandler
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
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
 
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
 

Field Detail

endpointPath

protected String endpointPath
Constructor Detail

FtpConsumer

public FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint,
                   org.apache.camel.Processor processor,
                   RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations)
Method Detail

pollDirectory

protected boolean pollDirectory(String fileName,
                                List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
                                int depth)
Specified by:
pollDirectory in class org.apache.camel.component.file.GenericFileConsumer<org.apache.commons.net.ftp.FTPFile>

pollSubDirectory

protected boolean pollSubDirectory(String absolutePath,
                                   String dirName,
                                   List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
                                   int depth)

doPollDirectory

protected boolean doPollDirectory(String absolutePath,
                                  String dirName,
                                  List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
                                  int depth)

toString

public String toString()
Overrides:
toString in class org.apache.camel.impl.DefaultConsumer


Apache CAMEL