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
@UriParams public class FtpConfiguration extends RemoteFileConfiguration
FTP configuration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.camel.component.file.remote.RemoteFileConfiguration
RemoteFileConfiguration.PathSeparator
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_FTP_PORT
-
Constructor Summary
Constructors Constructor Description FtpConfiguration()
FtpConfiguration(URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccount()
String
getActivePortRange()
String
getChmod()
boolean
isHandleDirectoryParserAbsoluteResult()
void
setAccount(String account)
Account to use for loginvoid
setActivePortRange(String activePortRange)
Set the client side port range in active mode.void
setChmod(String chmod)
Allows you to set chmod on the stored file.protected void
setDefaultPort()
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
-
-
-
-
Field Detail
-
DEFAULT_FTP_PORT
public static final int DEFAULT_FTP_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FtpConfiguration
public FtpConfiguration()
-
FtpConfiguration
public FtpConfiguration(URI uri)
-
-
Method Detail
-
setDefaultPort
protected void setDefaultPort()
- Specified by:
setDefaultPort
in classRemoteFileConfiguration
-
getAccount
public String getAccount()
-
setAccount
public void setAccount(String account)
Account to use for login
-
getActivePortRange
public String getActivePortRange()
-
setActivePortRange
public void setActivePortRange(String activePortRange)
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
public void setChmod(String chmod)
Allows you to set chmod on the stored file. For example chmod=640.
-
getChmod
public String 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.
-
-