@Component(value="ftp") @FileProcessStrategy(value=FtpProcessStrategyFactory.class) public class FtpComponent extends RemoteFileComponent<org.apache.commons.net.ftp.FTPFile>
REMOTE_FILE_INPUT_STREAM
Constructor and Description |
---|
FtpComponent() |
FtpComponent(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPropertiesSet(org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint) |
protected org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> |
buildFileEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
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.').
|
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.').
|
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 don't want to enforce end users to
to escape the $ for the expression (file language)
|
afterConfiguration, createEndpoint, createEndpoint, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public FtpComponent()
public FtpComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> buildFileEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
buildFileEndpoint
in class org.apache.camel.component.file.GenericFileComponent<org.apache.commons.net.ftp.FTPFile>
Exception
protected String getBaseUri(String uri)
protected void extractAndSetFtpClientConfigParameters(Map<String,Object> parameters, FtpEndpoint<org.apache.commons.net.ftp.FTPFile> answer)
protected void extractAndSetFtpClientParameters(Map<String,Object> parameters, FtpEndpoint<org.apache.commons.net.ftp.FTPFile> answer)
protected void afterPropertiesSet(org.apache.camel.component.file.GenericFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint) throws Exception
afterPropertiesSet
in class org.apache.camel.component.file.GenericFileComponent<org.apache.commons.net.ftp.FTPFile>
Exception
Apache Camel