public class AdvancedFTPSettings
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountDetails()
Get the account details to be sent at login time for use
in the ACCT command
|
int |
getActiveHighPort()
Get the upper limit of the port range for active mode.
|
java.lang.String |
getActiveIPAddress()
The active IP address being used, or null if not used
|
int |
getActiveLowPort()
Get the lower limit of the port range for active mode.
|
FTPConnectMode |
getConnectMode()
Get the data transfer mode.
|
DirectoryEmptyStrings |
getDirectoryEmptyMessages()
Get class that holds fragments of server messages that indicate a
directory is empty.
|
FileNotFoundStrings |
getFileNotFoundMessages()
Get class that holds fragments of server messages that indicate a file was
not found.
|
java.util.Locale[] |
getParserLocales()
Get the current parser locales used for directory listing parsing
|
int |
getRetryCount()
Get the retry count for retrying file transfers.
|
int |
getRetryDelay()
Get the retry delay between retry attempts, in milliseconds.
|
TransferCompleteStrings |
getTransferCompleteMessages()
Get class that holds fragments of server messages that indicate a transfer completed.
|
boolean |
isAutoPassiveIPSubstitution()
Is automatic substitution of the remote host IP set to
be on for passive mode connections?
|
boolean |
isStrictReturnCodes()
Determine if strict checking of return codes is switched on.
|
void |
setAccountDetails(java.lang.String accountDetails)
Set the account details to be sent at login time for use
in the ACCT command.
|
void |
setActiveIPAddress(java.lang.String activeIP)
We can force PORT to send a fixed IP address, which can be useful with certain
NAT configurations.
|
void |
setActivePortRange(int lowest,
int highest)
Force a certain range of ports to be used in active mode.
|
void |
setAutoPassiveIPSubstitution(boolean autoPassiveIPSubstitution)
Set automatic substitution of the remote host IP on if
in passive mode
|
void |
setConnectMode(FTPConnectMode mode)
Set the data transfer mode to either active (PORT) or passive (PASV).
|
void |
setParserLocales(java.util.Locale[] locales)
Set the list of locales to be tried for date parsing of directory listings
|
void |
setRetryCount(int retryCount)
Set the retry count for retrying file transfers.
|
void |
setRetryDelay(int retryDelay)
Set the retry delay between retry attempts, in milliseconds
|
void |
setStrictReturnCodes(boolean strict)
Set strict checking of FTP return codes.
|
public FTPConnectMode getConnectMode()
public void setConnectMode(FTPConnectMode mode) throws FTPException
mode
- data transfer mode to setFTPException
public void setStrictReturnCodes(boolean strict)
strict
- true for strict checking, false for loose checkingpublic boolean isStrictReturnCodes()
public void setParserLocales(java.util.Locale[] locales)
locales
- locales to usepublic java.util.Locale[] getParserLocales()
public java.lang.String getAccountDetails()
public void setAccountDetails(java.lang.String accountDetails)
accountDetails
- account details to setpublic boolean isAutoPassiveIPSubstitution()
public void setAutoPassiveIPSubstitution(boolean autoPassiveIPSubstitution)
autoPassiveIPSubstitution
- true if set to on, false otherwisepublic void setActivePortRange(int lowest, int highest)
lowest
- Lower limit of range (should be >= 1024).highest
- Upper limit of range.(should be <= 65535)public int getActiveLowPort()
public int getActiveHighPort()
public void setActiveIPAddress(java.lang.String activeIP)
activeIP
- IP address to force, in 192.168.1.0 form or in IPV6 form, e.g.
1080::8:800:200C:417Apublic java.lang.String getActiveIPAddress()
public int getRetryCount()
public void setRetryCount(int retryCount)
retryCount
- new retry countpublic int getRetryDelay()
public void setRetryDelay(int retryDelay)
new
- retry delay in millisecondspublic FileNotFoundStrings getFileNotFoundMessages()
The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a file was not found. If an FTP server is returning a different message that still clearly indicates a file was not found, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build.
public TransferCompleteStrings getTransferCompleteMessages()
The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a transfer completed. If an FTP server is returning a different message that still clearly indicates a transfer failed, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build.
public DirectoryEmptyStrings getDirectoryEmptyMessages()
The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a directory is empty. If an FTP server is returning a different message that still clearly indicates a directory is empty, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build.
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.