|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.hermesftp.server.impl.FtpServerOptionsImpl
public class FtpServerOptionsImpl
The FTP server options used throughout the application.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
FtpServerOptionsImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FtpServerOptionsImpl()
| Method Detail |
|---|
public java.util.Properties getProperties()
properties.
getProperties in interface FtpServerOptionsproperties.public void setProperties(java.util.Properties properties)
properties.
setProperties in interface FtpServerOptionsproperties - The value of properties to set.public java.lang.String getProperty(java.lang.String key)
getProperty in interface FtpServerOptionskey - The option key.
public int getBufferSize()
getBufferSize in interface FtpServerOptionspublic java.lang.String getRootDir()
getRootDir in interface FtpServerOptionspublic int getFtpPort()
getFtpPort in interface FtpServerOptionspublic int getImplicitSslPort()
getImplicitSslPort in interface FtpServerOptions
public boolean getBoolean(java.lang.String optionName,
boolean defaultValue)
getBoolean in interface FtpServerOptionsoptionName - The name of the option.defaultValue - The default value.
public int getInt(java.lang.String optionName,
int defaultValue)
getInt in interface FtpServerOptionsoptionName - The name of the option.defaultValue - The default value.
public java.lang.String getString(java.lang.String optionName,
java.lang.String defaultValue)
getString in interface FtpServerOptionsoptionName - The name of the option.defaultValue - The default value.
public java.lang.String[] getStringArray(java.lang.String optionName,
java.lang.String[] defaultValues)
getStringArray in interface FtpServerOptionsoptionName - The name of the option.defaultValues - The default values.
public int[] getIntArray(java.lang.String optionName,
int[] defaultValues)
getIntArray in interface FtpServerOptionsoptionName - The name of the option.defaultValues - The default values.
public java.lang.Integer[] getAllowedPorts()
getAllowedPorts in interface FtpServerOptions
public javax.net.ssl.SSLContext getSslContext()
throws FtpConfigException
getSslContext in interface FtpServerOptionsFtpConfigException - Error initializing SSL context or keystore.public java.lang.String getAppTitle()
getAppTitle in interface FtpServerOptionspublic java.lang.String getAppVersion()
getAppVersion in interface FtpServerOptionspublic java.lang.String getAppBuildInfo()
getAppBuildInfo in interface FtpServerOptionspublic java.util.Properties getSystemProperties()
systemProperties.
getSystemProperties in interface FtpServerOptionssystemProperties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||