org.apache.camel.component.file.remote
Class FtpEndpoint<T extends org.apache.commons.net.ftp.FTPFile>
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.component.file.GenericFileEndpoint<T>
org.apache.camel.component.file.remote.RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
org.apache.camel.component.file.remote.FtpEndpoint<T>
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, HasId
- 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
Fields inherited from class org.apache.camel.component.file.GenericFileEndpoint |
autoCreate, bufferSize, charset, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, eagerDeleteTargetFile, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxMessagesPerPoll, move, moveFailed, noop, preMove, processStrategy, readLock, readLockTimeout, recursive, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix |
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 |
configureExchange, configureMessage, configureMoveOrPreMoveExpression, createGenericFileStrategy, getBufferSize, getCharset, 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, isDirectoryMustExist, isEagerDeleteTargetFile, isFlatten, isIdempotent, isKeepLastModified, isNoop, isRecursive, isSingleton, isStartingDirectoryMustExist, setAutoCreate, setBufferSize, setCharset, setDelete, setDirectoryMustExist, setEagerDeleteTargetFile, 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, setStartingDirectoryMustExist, setTempFileName, setTempFileName, setTempPrefix |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
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
soTimeout
protected int soTimeout
dataTimeout
protected int dataTimeout
FtpEndpoint
public FtpEndpoint()
FtpEndpoint
public FtpEndpoint(String uri,
RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> component,
RemoteFileConfiguration configuration)
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
public RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> createRemoteFileOperations()
throws Exception
- Description copied from class:
RemoteFileEndpoint
- Creates the operations to be used by the consumer or producer.
- Specified by:
createRemoteFileOperations
in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
- Returns:
- a new created operations
- Throws:
Exception
- is thrown if error creating operations.
createFtpClient
protected org.apache.commons.net.ftp.FTPClient createFtpClient()
throws Exception
- Throws:
Exception
getConfiguration
public FtpConfiguration getConfiguration()
- Overrides:
getConfiguration
in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
setConfiguration
public void setConfiguration(GenericFileConfiguration configuration)
- Overrides:
setConfiguration
in class GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile>
setConfiguration
public void setConfiguration(FtpConfiguration configuration)
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)
getSoTimeout
public int getSoTimeout()
setSoTimeout
public void setSoTimeout(int soTimeout)
- Sets the soTimeout option.
Used by FTPClient
Apache CAMEL