|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FtpServerOptions
Defines the contract for classes representing the static server options retrieved from the configuration file.
Method Summary | |
---|---|
java.lang.Integer[] |
getAllowedPorts()
Returns a set of all allowed passive ports. |
java.lang.String |
getAppBuildInfo()
Returns the application build info as defined in the POM file. |
java.lang.String |
getAppTitle()
Returns the application title as defined in the POM file. |
java.lang.String |
getAppVersion()
Returns the application version as defined in the POM file. |
boolean |
getBoolean(java.lang.String optionName,
boolean defaultValue)
Returns a an option as boolean value. |
int |
getBufferSize()
Read the buffer size for downloading or uploading files. |
int |
getFtpPort()
Returns the FTP port. |
int |
getImplicitSslPort()
Returns the implicit SSL port. |
int |
getInt(java.lang.String optionName,
int defaultValue)
Returns a an option as integer value. |
int[] |
getIntArray(java.lang.String optionName,
int[] defaultValues)
Returns an array of integer options. |
java.util.Properties |
getProperties()
Getter method for the java bean properties . |
java.lang.String |
getProperty(java.lang.String key)
Convenience method for accessing the options. |
java.lang.String |
getRootDir()
Getter method for the server side remote directory. |
javax.net.ssl.SSLContext |
getSslContext()
Returns the SSL context to be used for creating SSL sockets. |
java.lang.String |
getString(java.lang.String optionName,
java.lang.String defaultValue)
Returns a an option as string value. |
java.lang.String[] |
getStringArray(java.lang.String optionName,
java.lang.String[] defaultValues)
Returns an array of options. |
java.util.Properties |
getSystemProperties()
Getter method for the java bean systemProperties . |
void |
setProperties(java.util.Properties properties)
Setter method for the java bean properties . |
Method Detail |
---|
java.util.Properties getProperties()
properties
.
properties
.void setProperties(java.util.Properties properties)
properties
.
properties
- The value of properties to set.java.lang.String getProperty(java.lang.String key)
key
- The option key.
int getBufferSize()
java.lang.String getRootDir()
int getFtpPort()
int getImplicitSslPort()
boolean getBoolean(java.lang.String optionName, boolean defaultValue)
optionName
- The name of the option.defaultValue
- The default value.
int getInt(java.lang.String optionName, int defaultValue)
optionName
- The name of the option.defaultValue
- The default value.
java.lang.String getString(java.lang.String optionName, java.lang.String defaultValue)
optionName
- The name of the option.defaultValue
- The default value.
java.lang.String[] getStringArray(java.lang.String optionName, java.lang.String[] defaultValues)
optionName
- The name of the option.defaultValues
- The default values.
int[] getIntArray(java.lang.String optionName, int[] defaultValues)
optionName
- The name of the option.defaultValues
- The default values.
java.lang.Integer[] getAllowedPorts()
javax.net.ssl.SSLContext getSslContext() throws FtpConfigException
FtpConfigException
- Error initializing SSL context or keystore.java.util.Properties getSystemProperties()
systemProperties
.
systemProperties
.java.lang.String getAppTitle()
java.lang.String getAppVersion()
java.lang.String getAppBuildInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |