@UriEndpoint(scheme="ftp",
extendsScheme="file",
title="FTP",
syntax="ftp:host:port/directoryName",
consumerClass=FtpConsumer.class,
label="file")
public class FtpEndpoint<T extends org.apache.commons.net.ftp.FTPFile>
extends RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>
| Modifier and Type | Field and Description |
|---|---|
protected FtpConfiguration |
configuration |
protected int |
dataTimeout |
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 |
protected int |
soTimeout |
allowNullBody, antExclude, antFilter, antInclude, autoCreate, bufferSize, charset, chmod, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, doneFileName, eagerDeleteTargetFile, eagerMaxMessagesPerPoll, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentKey, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxDepth, maxMessagesPerPoll, minDepth, move, moveExisting, moveFailed, noop, onCompletionExceptionHandler, preMove, processStrategy, readLock, readLockCheckInterval, readLockDeleteOrphanLockFiles, readLockLoggingLevel, readLockMarkerFile, readLockMinAge, readLockMinLength, readLockRemoveOnCommit, readLockRemoveOnRollback, readLockTimeout, recursive, shuffle, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix| Constructor and Description |
|---|
FtpEndpoint() |
FtpEndpoint(String uri,
RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> component,
FtpConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile> |
buildConsumer(org.apache.camel.Processor processor)
Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc.
|
protected org.apache.camel.component.file.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() |
RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> |
createRemoteFileOperations()
Creates the operations to be used by the consumer or producer.
|
FtpConfiguration |
getConfiguration() |
int |
getDataTimeout() |
char |
getFileSeparator() |
org.apache.commons.net.ftp.FTPClient |
getFtpClient() |
org.apache.commons.net.ftp.FTPClientConfig |
getFtpClientConfig() |
String |
getScheme() |
int |
getSoTimeout() |
void |
setConfiguration(org.apache.camel.component.file.GenericFileConfiguration configuration) |
void |
setDataTimeout(int dataTimeout)
Sets the data timeout on the FTP client.
|
void |
setFtpClient(org.apache.commons.net.ftp.FTPClient ftpClient) |
void |
setFtpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig) |
void |
setSoTimeout(int soTimeout)
Sets the soTimeout on the FTP client.
|
afterPropertiesSet, createConsumer, createExchange, createProducer, getMaximumReconnectAttempts, getParamsAsMap, getReconnectDelay, isAbsolute, isDisconnect, isDownload, isFastExistsCheck, remoteServerInformation, setDisconnect, setDownload, setFastExistsCheck, setMaximumReconnectAttempts, setReconnectDelaychmodPermissionsAreValid, configureExchange, configureMessage, configureMoveOrPreMoveExpression, createDoneFileName, createGenericFileStrategy, doStart, doStop, getAntExclude, getAntFilter, getAntInclude, getBufferSize, getCharset, getChmod, getDoneFileName, getExchanges, getExclude, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentKey, getIdempotentRepository, getInclude, getInProgressRepository, getLocalWorkDirectory, getMaxDepth, getMaxMessagesPerPoll, getMinDepth, getMove, getMoveExisting, getMoveFailed, getOnCompletionExceptionHandler, getPermissions, getPreMove, getProcessStrategy, getReadLock, getReadLockCheckInterval, getReadLockLoggingLevel, getReadLockMinAge, getReadLockMinLength, getReadLockTimeout, getSortBy, getSorter, getTempFileName, getTempPrefix, isAllowNullBody, isAutoCreate, isDelete, isDirectoryMustExist, isDoneFile, isEagerDeleteTargetFile, isEagerMaxMessagesPerPoll, isFlatten, isIdempotent, isIdempotentSet, isKeepLastModified, isNoop, isReadLockDeleteOrphanLockFiles, isReadLockMarkerFile, isReadLockRemoveOnCommit, isReadLockRemoveOnRollback, isRecursive, isShuffle, isSingleton, isStartingDirectoryMustExist, setAllowNullBody, setAntExclude, setAntFilterCaseSensitive, setAntInclude, setAutoCreate, setBufferSize, setCharset, setChmod, setDelete, setDirectoryMustExist, setDoneFileName, setEagerDeleteTargetFile, setEagerMaxMessagesPerPoll, setExclude, setExclusiveReadLockStrategy, setFileExist, setFileName, setFileName, setFilter, setFlatten, setIdempotent, setIdempotentKey, setIdempotentKey, setIdempotentRepository, setInclude, setInProgressRepository, setKeepLastModified, setLocalWorkDirectory, setMaxDepth, setMaxMessagesPerPoll, setMinDepth, setMove, setMove, setMoveExisting, setMoveExisting, setMoveFailed, setMoveFailed, setNoop, setOnCompletionExceptionHandler, setPreMove, setPreMove, setProcessStrategy, setReadLock, setReadLockCheckInterval, setReadLockDeleteOrphanLockFiles, setReadLockLoggingLevel, setReadLockMarkerFile, setReadLockMinAge, setReadLockMinLength, setReadLockRemoveOnCommit, setReadLockRemoveOnRollback, setReadLockTimeout, setRecursive, setShuffle, setSortBy, setSortBy, setSortBy, setSorter, setStartingDirectoryMustExist, setTempFileName, setTempFileName, setTempPrefixconfigurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected org.apache.commons.net.ftp.FTPClient ftpClient
protected org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig
protected int soTimeout
protected int dataTimeout
@UriParam protected FtpConfiguration configuration
public FtpEndpoint()
public FtpEndpoint(String uri, RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> component, FtpConfiguration configuration)
public String getScheme()
getScheme in class org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile>protected RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile> buildConsumer(org.apache.camel.Processor processor)
RemoteFileEndpointbuildConsumer in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>processor - the processorprotected org.apache.camel.component.file.GenericFileProducer<org.apache.commons.net.ftp.FTPFile> buildProducer()
RemoteFileEndpointbuildProducer in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>public RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> createRemoteFileOperations() throws Exception
RemoteFileEndpointcreateRemoteFileOperations in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>Exception - is thrown if error creating operations.protected org.apache.commons.net.ftp.FTPClient createFtpClient()
throws Exception
Exceptionpublic FtpConfiguration getConfiguration()
getConfiguration in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>public void setConfiguration(org.apache.camel.component.file.GenericFileConfiguration configuration)
setConfiguration in class org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile>public org.apache.commons.net.ftp.FTPClient getFtpClient()
public void setFtpClient(org.apache.commons.net.ftp.FTPClient ftpClient)
public org.apache.commons.net.ftp.FTPClientConfig getFtpClientConfig()
public void setFtpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig)
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public int getDataTimeout()
public void setDataTimeout(int dataTimeout)
public char getFileSeparator()
getFileSeparator in class RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile>Apache Camel