org.apache.camel.component.file.remote
Class FtpComponent
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.file.GenericFileComponent<T>
org.apache.camel.component.file.remote.RemoteFileComponent<org.apache.commons.net.ftp.FTPFile>
org.apache.camel.component.file.remote.FtpComponent
- All Implemented Interfaces:
- Component, Service, ShutdownableService
- Direct Known Subclasses:
- FtpsComponent
public class FtpComponent
- extends RemoteFileComponent<org.apache.commons.net.ftp.FTPFile>
FTP Component
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, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FtpComponent
public FtpComponent()
FtpComponent
public FtpComponent(CamelContext context)
buildFileEndpoint
protected GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> buildFileEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
- Specified by:
buildFileEndpoint
in class GenericFileComponent<org.apache.commons.net.ftp.FTPFile>
- Throws:
Exception
getBaseUri
protected String getBaseUri(String uri)
- get the base uri part before the options as they can be non URI valid such as the expression using $ chars
and the URI constructor will regard $ as an illegal character and we dont want to enforce end users to
to escape the $ for the expression (file language)
extractAndSetFtpClientConfigParameters
protected void extractAndSetFtpClientConfigParameters(Map<String,Object> parameters,
FtpEndpoint<org.apache.commons.net.ftp.FTPFile> answer)
- Extract additional ftp client configuration options from the parameters map (parameters starting with
'ftpClientConfig.'). To remember these parameters, we set them in the endpoint and we can use them
when creating a client.
extractAndSetFtpClientParameters
protected void extractAndSetFtpClientParameters(Map<String,Object> parameters,
FtpEndpoint<org.apache.commons.net.ftp.FTPFile> answer)
- Extract additional ftp client options from the parameters map (parameters starting with
'ftpClient.'). To remember these parameters, we set them in the endpoint and we can use them
when creating a client.
afterPropertiesSet
protected void afterPropertiesSet(GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint)
throws Exception
- Specified by:
afterPropertiesSet
in class GenericFileComponent<org.apache.commons.net.ftp.FTPFile>
- Throws:
Exception
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.