Package com.pixelmed.ftp
Class FTPApplicationProperties
java.lang.Object
com.pixelmed.ftp.FTPApplicationProperties
This class provides common support to applications requiring properties related to FTP network services.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate default properties.FTPApplicationProperties(Properties properties) Extract the ftp properties from the supplied properties. -
Method Summary
Modifier and TypeMethodDescriptionReturn the network application information.getProperties(Properties properties) Retrieve the ftp properties.static voidTest the parsing of network properties from the specified file, by reading them and printing them.toString()
-
Field Details
-
ftpRemoteHostInformation
-
-
Constructor Details
-
FTPApplicationProperties
Create default properties.
- Throws:
FTPException
-
FTPApplicationProperties
Extract the ftp properties from the supplied properties.
- Parameters:
properties-- Throws:
FTPException
-
-
Method Details
-
getProperties
Retrieve the ftp properties.
param properties the existing properties to add to (replacing corresponding properties already there), or null if none- Returns:
- the updated properties or a new set of properties if none supplied
-
getFTPRemoteHostInformation
Return the network application information.
- Returns:
- the network application information
-
toString
-
main
Test the parsing of network properties from the specified file, by reading them and printing them.
- Parameters:
arg- one argument, a single file name that is the properties file
-