Class FTPRemoteHostInformation
This class encapsulates information about remote FTP servers.
The following properties are supported:
Ftp.RemoteHosts - a space or comma separated list of the local names all the available remote hosts; each local name may be anything unique (in this file) without a space or comma; the local name does not need to be the same as the remote host's name
Ftp.XXXX.HostNameOrIPAddress - for the remote host with local name XXXX, what host or IP addess that AE will listen on for incoming connections
Ftp.XXXX.User - for the remote host with local name XXXX, what user name to login with
Ftp.XXXX.Password - for the remote host with local name XXXX, what password to login with
Ftp.XXXX.Directory - for the remote host with local name XXXX, what initial working directory to change to
Ftp.XXXX.Security - for the remote host with local name XXXX, what the type of security to use (supported values are NONE, TLS)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty container for properties of FTP network devices.FTPRemoteHostInformation(Properties properties) Extract the FTP network properties from the supplied properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String localName, FTPRemoteHost frh) Add a new host.voidadd(String localName, String host, String user, String password, String directory, FTPSecurityType security) Add a new remote FTP host.Return the set of local names of remote hosts.getProperties(Properties properties) Retrieve the FTP network properties.getRemoteHost(String localName) Get the information for the specified remote host.voidRemove a host.voidCompletely empty all information.toString()
-
Field Details
-
propertyName_FtpRemoteHosts
- See Also:
-
propertyNameSuffix_HostNameOrIPAddress
- See Also:
-
propertyNameSuffix_User
- See Also:
-
propertyNameSuffix_Password
- See Also:
-
propertyNameSuffix_Directory
- See Also:
-
propertyNameSuffix_Security
- See Also:
-
propertyDelimitersForTokenizer_FtpRemoteAEs
- See Also:
-
localNameToRemoteHostMap
-
-
Constructor Details
-
FTPRemoteHostInformation
public FTPRemoteHostInformation()Construct an empty container for properties of FTP network devices.
-
FTPRemoteHostInformation
Extract the FTP network properties from the supplied properties.
- Parameters:
properties-- Throws:
FTPException
-
-
Method Details
-
getProperties
Retrieve the FTP network properties.
param properties the existing properties to add to (removing any properties already there), or null if none- Returns:
- the updated properties or a new set of properties if none supplied
-
removeAll
public void removeAll()Completely empty all information.
-
remove
Remove a host.
- Parameters:
localName-
-
add
Add a new host.
- Parameters:
localName-frh-- Throws:
FTPException- if local name already used, or either is null or empty
-
add
public void add(String localName, String host, String user, String password, String directory, FTPSecurityType security) throws FTPException Add a new remote FTP host.
- Parameters:
localName-host-user-password-directory-security-- Throws:
FTPException- if local name or AET already used, or either is null or empty
-
getRemoteHost
Get the information for the specified remote host.
- Parameters:
localName-- Returns:
- the remote host information
-
getListOfLocalNames
Return the set of local names of remote hosts.
- Returns:
- the set of local names
-
toString
-