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

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.component.file.GenericFileComponent<T>
              extended by org.apache.camel.component.file.remote.RemoteFileComponent<org.apache.commons.net.ftp.FTPFile>
                  extended by org.apache.camel.component.file.remote.FtpComponent
                      extended by org.apache.camel.component.file.remote.FtpsComponent
All Implemented Interfaces:
CamelContextAware, Component, Service, ShutdownableService

public class FtpsComponent
extends FtpComponent

FTP Secure (FTP over SSL/TLS) Component.

If desired, the JVM property -Djavax.net.debug=all can be used to see wire-level SSL details.

Version:

Field Summary
 
Fields inherited from class org.apache.camel.component.file.GenericFileComponent
log
 
Constructor Summary
FtpsComponent()
           
FtpsComponent(CamelContext context)
           
 
Method Summary
protected  GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> buildFileEndpoint(String uri, String remaining, Map<String,Object> parameters)
          A factory method for derived file components to create the endpoint
protected  void extractAndSetFtpClientKeyStoreParameters(Map<String,Object> parameters, FtpsEndpoint endpoint)
          Extract additional ftp client key store options from the parameters map (parameters starting with 'ftpClient.keyStore.').
protected  void extractAndSetFtpClientTrustStoreParameters(Map<String,Object> parameters, FtpsEndpoint endpoint)
          Extract additional ftp client trust store options from the parameters map (parameters starting with 'ftpClient.trustStore.').
 
Methods inherited from class org.apache.camel.component.file.remote.FtpComponent
afterPropertiesSet, extractAndSetFtpClientConfigParameters, extractAndSetFtpClientParameters, getBaseUri
 
Methods inherited from class org.apache.camel.component.file.GenericFileComponent
createEndpoint
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
afterConfiguration, createEndpoint, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, validateParameters, validateURI
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpsComponent

public FtpsComponent()

FtpsComponent

public FtpsComponent(CamelContext context)
Method Detail

buildFileEndpoint

protected GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> buildFileEndpoint(String uri,
                                                                                    String remaining,
                                                                                    Map<String,Object> parameters)
                                                                             throws Exception
Description copied from class: GenericFileComponent
A factory method for derived file components to create the endpoint

Overrides:
buildFileEndpoint in class FtpComponent
Parameters:
uri - the full URI of the endpoint
remaining - the remaining part of the URI without the query parameters or component prefix
parameters - the optional parameters passed in
Returns:
a newly created endpoint or null if the endpoint cannot be created based on the inputs
Throws:
Exception - can be thrown

extractAndSetFtpClientKeyStoreParameters

protected void extractAndSetFtpClientKeyStoreParameters(Map<String,Object> parameters,
                                                        FtpsEndpoint endpoint)
Extract additional ftp client key store options from the parameters map (parameters starting with 'ftpClient.keyStore.'). To remember these parameters, we set them in the endpoint and we can use them when creating a client.


extractAndSetFtpClientTrustStoreParameters

protected void extractAndSetFtpClientTrustStoreParameters(Map<String,Object> parameters,
                                                          FtpsEndpoint endpoint)
Extract additional ftp client trust store options from the parameters map (parameters starting with 'ftpClient.trustStore.'). To remember these parameters, we set them in the endpoint and we can use them when creating a client.



Apache CAMEL