public class FTPApplicationProperties
extends java.lang.Object
This class provides common support to applications requiring properties related to FTP network services.
Modifier and Type | Field and Description |
---|---|
protected FTPRemoteHostInformation |
ftpRemoteHostInformation |
Constructor and Description |
---|
FTPApplicationProperties()
Create default properties.
|
FTPApplicationProperties(java.util.Properties properties)
Extract the ftp properties from the supplied properties.
|
Modifier and Type | Method and Description |
---|---|
FTPRemoteHostInformation |
getFTPRemoteHostInformation()
Return the network application information.
|
java.util.Properties |
getProperties(java.util.Properties properties)
Retrieve the ftp properties.
|
static void |
main(java.lang.String[] arg)
Test the parsing of network properties from the specified file, by reading them and printing them.
|
java.lang.String |
toString() |
protected FTPRemoteHostInformation ftpRemoteHostInformation
public FTPApplicationProperties() throws FTPException
Create default properties.
FTPException
public FTPApplicationProperties(java.util.Properties properties) throws FTPException
Extract the ftp properties from the supplied properties.
properties
- FTPException
public FTPRemoteHostInformation getFTPRemoteHostInformation()
Return the network application information.
public java.util.Properties getProperties(java.util.Properties properties)
Retrieve the ftp properties.
param properties the existing properties to add to (replacing corresponding properties already there), or null if nonepublic static void main(java.lang.String[] arg)
Test the parsing of network properties from the specified file, by reading them and printing them.
arg
- one argument, a single file name that is the properties filepublic java.lang.String toString()
toString
in class java.lang.Object