Class FtpConfiguration
java.lang.Object
org.apache.camel.component.file.GenericFileConfiguration
org.apache.camel.component.file.remote.RemoteFileConfiguration
org.apache.camel.component.file.remote.FtpConfiguration
- Direct Known Subclasses:
FtpsConfiguration
FTP configuration
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.component.file.remote.RemoteFileConfiguration
RemoteFileConfiguration.PathSeparator
-
Field Summary
Fields inherited from class org.apache.camel.component.file.GenericFileConfiguration
directory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChmod()
boolean
void
setAccount
(String account) Account to use for loginvoid
setActivePortRange
(String activePortRange) Set the client side port range in active mode.void
Allows you to set chmod on the stored file.protected void
void
setHandleDirectoryParserAbsoluteResult
(boolean handleDirectoryParserAbsoluteResult) Allows you to set how the consumer will handle subfolders and files in the path if the directory parser results in with absolute paths The reason for this is that some FTP servers may return file names with absolute paths, and if so then the FTP component needs to handle this by converting the returned path into a relative path.Methods inherited from class org.apache.camel.component.file.remote.RemoteFileConfiguration
configure, getConnectTimeout, getDirectoryName, getHost, getPassword, getPort, getProtocol, getSeparator, getSiteCommand, getSoTimeout, getTimeout, getUsername, isBinary, isIgnoreFileNotFoundOrPermissionError, isPassiveMode, isSendNoop, isStepwise, isStreamDownload, isThrowExceptionOnConnectFailed, isUseList, needToNormalize, normalizePath, remoteServerInformation, setBinary, setConnectTimeout, setDirectoryName, setHost, setIgnoreFileNotFoundOrPermissionError, setPassiveMode, setPassword, setPort, setProtocol, setSendNoop, setSeparator, setSiteCommand, setSoTimeout, setStepwise, setStreamDownload, setThrowExceptionOnConnectFailed, setTimeout, setUseList, setUsername
Methods inherited from class org.apache.camel.component.file.GenericFileConfiguration
getDirectory, setDirectory, toString
-
Field Details
-
DEFAULT_FTP_PORT
public static final int DEFAULT_FTP_PORT- See Also:
-
-
Constructor Details
-
FtpConfiguration
public FtpConfiguration() -
FtpConfiguration
-
-
Method Details
-
setDefaultPort
protected void setDefaultPort()- Specified by:
setDefaultPort
in classRemoteFileConfiguration
-
getAccount
-
setAccount
Account to use for login -
getActivePortRange
-
setActivePortRange
Set the client side port range in active mode. The syntax is: minPort-maxPort Both port numbers are inclusive, eg 10000-19999 to include all 1xxxx ports. -
setChmod
Allows you to set chmod on the stored file. For example chmod=640. -
getChmod
-
isHandleDirectoryParserAbsoluteResult
public boolean isHandleDirectoryParserAbsoluteResult() -
setHandleDirectoryParserAbsoluteResult
public void setHandleDirectoryParserAbsoluteResult(boolean handleDirectoryParserAbsoluteResult) Allows you to set how the consumer will handle subfolders and files in the path if the directory parser results in with absolute paths The reason for this is that some FTP servers may return file names with absolute paths, and if so then the FTP component needs to handle this by converting the returned path into a relative path.
-