|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.ftp.FTPRemoteHostInformation
public 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 | |
|---|---|
protected TreeMap<String,FTPRemoteHost> |
localNameToRemoteHostMap
|
protected static String |
propertyDelimitersForTokenizer_FtpRemoteAEs
|
static String |
propertyName_FtpRemoteHosts
|
protected static String |
propertyNameSuffix_Directory
|
protected static String |
propertyNameSuffix_HostNameOrIPAddress
|
protected static String |
propertyNameSuffix_Password
|
protected static String |
propertyNameSuffix_Security
|
protected static String |
propertyNameSuffix_User
|
| Constructor Summary | |
|---|---|
FTPRemoteHostInformation()
Construct an empty container for properties of FTP network devices. |
|
FTPRemoteHostInformation(Properties properties)
Extract the FTP network properties from the supplied properties. |
|
| Method Summary | |
|---|---|
void |
add(String localName,
FTPRemoteHost frh)
Add a new host. |
void |
add(String localName,
String host,
String user,
String password,
String directory,
FTPSecurityType security)
Add a new remote FTP host. |
Set |
getListOfLocalNames()
Return the set of local names of remote hosts. |
Properties |
getProperties(Properties properties)
Retrieve the FTP network properties. |
FTPRemoteHost |
getRemoteHost(String localName)
Get the information for the specified remote host. |
void |
remove(String localName)
Remove a host. |
void |
removeAll()
Completely empty all information. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String propertyName_FtpRemoteHosts
protected static final String propertyNameSuffix_HostNameOrIPAddress
protected static final String propertyNameSuffix_User
protected static final String propertyNameSuffix_Password
protected static final String propertyNameSuffix_Directory
protected static final String propertyNameSuffix_Security
protected static final String propertyDelimitersForTokenizer_FtpRemoteAEs
protected final TreeMap<String,FTPRemoteHost> localNameToRemoteHostMap
| Constructor Detail |
|---|
public FTPRemoteHostInformation()
Construct an empty container for properties of FTP network devices.
public FTPRemoteHostInformation(Properties properties)
throws FTPException
Extract the FTP network properties from the supplied properties.
properties -
FTPException| Method Detail |
|---|
public Properties getProperties(Properties properties)
Retrieve the FTP network properties.
param properties the existing properties to add to (removing any properties already there), or null if none
public void removeAll()
Completely empty all information.
public void remove(String localName)
Remove a host.
localName -
public void add(String localName,
FTPRemoteHost frh)
throws FTPException
Add a new host.
localName - frh -
FTPException - if local name already used, or either is null or empty
public void add(String localName,
String host,
String user,
String password,
String directory,
FTPSecurityType security)
throws FTPException
Add a new remote FTP host.
localName - host - user - password - directory - security -
FTPException - if local name or AET already used, or either is null or emptypublic FTPRemoteHost getRemoteHost(String localName)
Get the information for the specified remote host.
localName -
public Set getListOfLocalNames()
Return the set of local names of remote hosts.
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||