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

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      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<org.apache.commons.net.ftp.FTPFile>
                          extended by org.apache.camel.component.file.remote.FtpsEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, BrowsableEndpoint, HasId

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

FTP Secure (FTP over SSL/TLS) endpoint

Version:

Field Summary
protected  Map<String,Object> ftpClientKeyStoreParameters
           
protected  Map<String,Object> ftpClientTrustStoreParameters
           
 
Fields inherited from class org.apache.camel.component.file.remote.FtpEndpoint
dataTimeout, ftpClient, ftpClientConfig, ftpClientConfigParameters, ftpClientParameters, soTimeout
 
Fields inherited from class org.apache.camel.component.file.GenericFileEndpoint
autoCreate, bufferSize, charset, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, doneFileName, eagerDeleteTargetFile, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxDepth, maxMessagesPerPoll, minDepth, move, moveFailed, noop, preMove, processStrategy, readLock, readLockCheckInterval, readLockTimeout, recursive, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix
 
Constructor Summary
FtpsEndpoint()
           
FtpsEndpoint(String uri, RemoteFileComponent<org.apache.commons.net.ftp.FTPFile> remoteFileComponent, RemoteFileConfiguration configuration)
           
 
Method Summary
protected  org.apache.commons.net.ftp.FTPClient createFtpClient()
          Create the FTPS client.
 RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> createRemoteFileOperations()
          Creates the operations to be used by the consumer or producer.
 org.apache.commons.net.ftp.FTPSClient getFtpsClient()
          Returns the FTPSClient.
 FtpsConfiguration getFtpsConfiguration()
          Returns the FtpsConfiguration.
 String getScheme()
           
 void setFtpClientKeyStoreParameters(Map<String,Object> param)
          Set the key store parameters
 void setFtpClientTrustStoreParameters(Map<String,Object> param)
          Set the trust store parameters
 
Methods inherited from class org.apache.camel.component.file.remote.FtpEndpoint
buildConsumer, buildProducer, getConfiguration, getFtpClient, getFtpClientConfig, getSoTimeout, setConfiguration, setConfiguration, setFtpClient, setFtpClientConfig, setSoTimeout
 
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, createDoneFileName, createGenericFileStrategy, doStart, doStop, getBufferSize, getCharset, getDoneFileName, getExchanges, getExclude, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentRepository, getInclude, getInProgressRepository, getLocalWorkDirectory, getMaxDepth, getMaxMessagesPerPoll, getMinDepth, getMove, getMoveFailed, getParamsAsMap, getPreMove, getProcessStrategy, getReadLock, getReadLockCheckInterval, getReadLockTimeout, getSortBy, getSorter, getTempFileName, getTempPrefix, isAutoCreate, isDelete, isDirectoryMustExist, isDoneFile, isEagerDeleteTargetFile, isFlatten, isIdempotent, isKeepLastModified, isNoop, isRecursive, isSingleton, isStartingDirectoryMustExist, setAutoCreate, setBufferSize, setCharset, setDelete, setDirectoryMustExist, setDoneFileName, setEagerDeleteTargetFile, setExclude, setExclusiveReadLockStrategy, setFileExist, setFileName, setFileName, setFilter, setFlatten, setIdempotent, setIdempotentRepository, setInclude, setInProgressRepository, setKeepLastModified, setLocalWorkDirectory, setMaxDepth, setMaxMessagesPerPoll, setMinDepth, setMove, setMove, setMoveFailed, setMoveFailed, setNoop, setPreMove, setPreMove, setProcessStrategy, setReadLock, setReadLockCheckInterval, setReadLockTimeout, setRecursive, setSortBy, setSortBy, setSortBy, setSorter, setStartingDirectoryMustExist, 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, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Endpoint
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

ftpClientKeyStoreParameters

protected Map<String,Object> ftpClientKeyStoreParameters

ftpClientTrustStoreParameters

protected Map<String,Object> ftpClientTrustStoreParameters
Constructor Detail

FtpsEndpoint

public FtpsEndpoint()

FtpsEndpoint

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

getScheme

public String getScheme()
Overrides:
getScheme in class FtpEndpoint<org.apache.commons.net.ftp.FTPFile>

createFtpClient

protected org.apache.commons.net.ftp.FTPClient createFtpClient()
                                                        throws Exception
Create the FTPS client.

Overrides:
createFtpClient in class FtpEndpoint<org.apache.commons.net.ftp.FTPFile>
Throws:
Exception

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.

Overrides:
createRemoteFileOperations in class FtpEndpoint<org.apache.commons.net.ftp.FTPFile>
Returns:
a new created operations
Throws:
Exception - is thrown if error creating operations.

getFtpsClient

public org.apache.commons.net.ftp.FTPSClient getFtpsClient()
Returns the FTPSClient. This method exists only for convenient.

Returns:
ftpsClient

getFtpsConfiguration

public FtpsConfiguration getFtpsConfiguration()
Returns the FtpsConfiguration. This method exists only for convenient.

Returns:
ftpsConfiguration

setFtpClientKeyStoreParameters

public void setFtpClientKeyStoreParameters(Map<String,Object> param)
Set the key store parameters


setFtpClientTrustStoreParameters

public void setFtpClientTrustStoreParameters(Map<String,Object> param)
Set the trust store parameters



Apache CAMEL