| java.lang.Object com.enterprisedt.net.ftp.AdvancedSettings com.enterprisedt.net.ftp.AdvancedFTPSettings
AdvancedFTPSettings | public class AdvancedFTPSettings extends AdvancedSettings (Code) | | Holds advanced configuration options not likely to be used for
basic FTP operations. These options must be set prior to establishing
connections, otherwise they have no effect until a new connection is made.
author: Bruce Blackshaw version: $Revision: 1.1 $ |
AdvancedFTPSettings | AdvancedFTPSettings(ConnectionContext context)(Code) | | Constructor
Parameters: context - context that settings are kept in |
getActiveHighPort | public int getActiveHighPort()(Code) | | Get the upper limit of the port range for active mode.
upper limit, or -1 if not set |
getActiveIPAddress | public String getActiveIPAddress()(Code) | | The active IP address being used, or null if not used
IP address as a string or null |
getActiveLowPort | public int getActiveLowPort()(Code) | | Get the lower limit of the port range for active mode.
lower limit, or -1 if not set |
getConnectMode | public FTPConnectMode getConnectMode()(Code) | | Get the data transfer mode. This only applies to the FTP and FTPS
protocols.
the data transfer mode of the master context |
getDirectoryEmptyMessages | public DirectoryEmptyStrings getDirectoryEmptyMessages()(Code) | | Get class that holds fragments of server messages that indicate a
directory is empty. New messages can be added.
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.
messages class |
getFileNotFoundMessages | public FileNotFoundStrings getFileNotFoundMessages()(Code) | | Get class that holds fragments of server messages that indicate a file was
not found. New messages can be added.
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.
messages class |
getParserLocales | public Locale[] getParserLocales()(Code) | | Get the current parser locales used for directory listing parsing
Locale[] |
getTransferCompleteMessages | public TransferCompleteStrings getTransferCompleteMessages()(Code) | | Get class that holds fragments of server messages that indicate a transfer completed.
New messages can be added.
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.
messages class |
isAutoPassiveIPSubstitution | public boolean isAutoPassiveIPSubstitution()(Code) | | Is automatic substitution of the remote host IP set to
be on for passive mode connections?
true if set on, false otherwise |
isStrictReturnCodes | public boolean isStrictReturnCodes()(Code) | | Determine if strict checking of return codes is switched on. If it is
(the default), all return codes must exactly match the expected code.
If strict checking is off, only the first digit must match.
true if strict return code checking, false if non-strict. |
setActiveIPAddress | public void setActiveIPAddress(String activeIP)(Code) | | We can force PORT to send a fixed IP address, which can be useful with certain
NAT configurations.
Parameters: activeIP - IP address to force, in 192.168.1.0 form or in IPV6 form, e.g.1080::8:800:200C:417A |
setActivePortRange | public void setActivePortRange(int lowest, int highest)(Code) | | Force a certain range of ports to be used in active mode. This is
generally so that a port range can be configured in a firewall. Note
that if lowest == highest, a single port will be used. This works well
for uploads, but downloads generally require multiple ports, as most
servers fail to create a connection repeatedly for the same port.
Parameters: lowest - Lower limit of range (should be >= 1024). Parameters: highest - Upper limit of range.(should be <= 65535) |
setAutoPassiveIPSubstitution | public void setAutoPassiveIPSubstitution(boolean autoPassiveIPSubstitution)(Code) | | Set automatic substitution of the remote host IP on if
in passive mode
Parameters: autoPassiveIPSubstitution - true if set to on, false otherwise |
setConnectMode | public void setConnectMode(FTPConnectMode mode) throws FTPException(Code) | | Set the data transfer mode to either active (PORT) or passive (PASV).
Only applicable to FTP/S. Setting applies to all subsequent transfers
that are initiated.
Parameters: mode - data transfer mode to set throws: FTPException - |
setParserLocales | public void setParserLocales(Locale[] locales)(Code) | | Set the list of locales to be tried for date parsing of directory listings
Parameters: locales - locales to use |
setStrictReturnCodes | public void setStrictReturnCodes(boolean strict)(Code) | | Set strict checking of FTP return codes. If strict
checking is on (the default) code must exactly match the expected
code. If strict checking is off, only the first digit must match.
Parameters: strict - true for strict checking, false for loose checking |
|
|