org.apache.camel.component.file.remote
Class FtpEndpoint<T extends org.apache.commons.net.ftp.FTPFile>

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.impl.ScheduledPollEndpoint
          extended by org.apache.camel.component.file.GenericFileEndpoint<T>
              extended by org.apache.camel.component.file.remote.RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
                  extended by org.apache.camel.component.file.remote.FtpEndpoint<T>
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton
Direct Known Subclasses:
FtpsEndpoint

public class FtpEndpoint<T extends org.apache.commons.net.ftp.FTPFile>
extends RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>

FTP endpoint


Field Summary
protected  org.apache.commons.net.ftp.FTPClient ftpClient
           
protected  org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig
           
protected  Map<String,Object> ftpClientConfigParameters
           
protected  Map<String,Object> ftpClientParameters
           
 
Fields inherited from class org.apache.camel.component.file.GenericFileEndpoint
autoCreate, bufferSize, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxMessagesPerPoll, move, moveFailed, noop, preMove, processStrategy, readLock, readLockTimeout, recursive, sortBy, sorter, tempFileName, tempPrefix
 
Constructor Summary
FtpEndpoint()
           
FtpEndpoint(String uri, RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> component, RemoteFileConfiguration configuration)
           
 
Method Summary
protected  RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile> buildConsumer(Processor processor)
          Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc.
protected  GenericFileProducer<org.apache.commons.net.ftp.FTPFile> buildProducer()
          Remote File Endpoints, impl this method to create a custom producer specific to their "protocol" etc.
protected  org.apache.commons.net.ftp.FTPClient createFtpClient()
           
protected  RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> createRemoteFileOperations()
           
 org.apache.commons.net.ftp.FTPClient getFtpClient()
           
 org.apache.commons.net.ftp.FTPClientConfig getFtpClientConfig()
           
 String getScheme()
           
 void setFtpClient(org.apache.commons.net.ftp.FTPClient ftpClient)
           
 void setFtpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig)
           
 
Methods inherited from class org.apache.camel.component.file.remote.RemoteFileEndpoint
afterPropertiesSet, createConsumer, createExchange, createProducer, getFileSeparator, getMaximumReconnectAttempts, getReconnectDelay, isAbsolute, isDisconnect, remoteServerInformation, setDisconnect, setMaximumReconnectAttempts, setReconnectDelay
 
Methods inherited from class org.apache.camel.component.file.GenericFileEndpoint
configureMessage, configureMoveOrPreMoveExpression, createGenericFileStrategy, getBufferSize, getConfiguration, getExclude, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentRepository, getInclude, getInProgressRepository, getLocalWorkDirectory, getMaxMessagesPerPoll, getMove, getMoveFailed, getParamsAsMap, getPreMove, getProcessStrategy, getReadLock, getReadLockTimeout, getSortBy, getSorter, getTempFileName, getTempPrefix, isAutoCreate, isDelete, isFlatten, isIdempotent, isKeepLastModified, isNoop, isRecursive, isSingleton, setAutoCreate, setBufferSize, setConfiguration, setDelete, setExclude, setExclusiveReadLockStrategy, setFileExist, setFileName, setFileName, setFilter, setFlatten, setIdempotent, setIdempotentRepository, setInclude, setInProgressRepository, setKeepLastModified, setLocalWorkDirectory, setMaxMessagesPerPoll, setMove, setMove, setMoveFailed, setMoveFailed, setNoop, setPreMove, setPreMove, setProcessStrategy, setReadLock, setReadLockTimeout, setRecursive, setSortBy, setSortBy, setSortBy, setSorter, setTempFileName, setTempFileName, setTempPrefix
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ftpClient

protected org.apache.commons.net.ftp.FTPClient ftpClient

ftpClientConfig

protected org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig

ftpClientParameters

protected Map<String,Object> ftpClientParameters

ftpClientConfigParameters

protected Map<String,Object> ftpClientConfigParameters
Constructor Detail

FtpEndpoint

public FtpEndpoint()

FtpEndpoint

public FtpEndpoint(String uri,
                   RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> component,
                   RemoteFileConfiguration configuration)
Method Detail

getScheme

public String getScheme()
Specified by:
getScheme in class GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile>

buildConsumer

protected RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile> buildConsumer(Processor processor)
Description copied from class: RemoteFileEndpoint
Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc.

Specified by:
buildConsumer in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
Parameters:
processor - the processor
Returns:
the created consumer

buildProducer

protected GenericFileProducer<org.apache.commons.net.ftp.FTPFile> buildProducer()
Description copied from class: RemoteFileEndpoint
Remote File Endpoints, impl this method to create a custom producer specific to their "protocol" etc.

Specified by:
buildProducer in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
Returns:
the created producer

createRemoteFileOperations

protected RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> createRemoteFileOperations()
                                                                                       throws Exception
Throws:
Exception

createFtpClient

protected org.apache.commons.net.ftp.FTPClient createFtpClient()
                                                        throws Exception
Throws:
Exception

getFtpClient

public org.apache.commons.net.ftp.FTPClient getFtpClient()

setFtpClient

public void setFtpClient(org.apache.commons.net.ftp.FTPClient ftpClient)

getFtpClientConfig

public org.apache.commons.net.ftp.FTPClientConfig getFtpClientConfig()

setFtpClientConfig

public void setFtpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.