|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.config.PropertiesConfiguration
public class PropertiesConfiguration
Properties based configuration.
Field Summary | |
---|---|
protected java.lang.String |
prefix
|
protected java.util.Properties |
prop
|
Constructor Summary | |
---|---|
protected |
PropertiesConfiguration()
Private constructor - used internally to get configuration subset. |
|
PropertiesConfiguration(java.io.InputStream in)
Constructor - set the properties input stream. |
|
PropertiesConfiguration(java.util.Properties prop)
Constructor - set the properties. |
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.String param)
Get boolean - if not found throws FtpException. |
boolean |
getBoolean(java.lang.String param,
boolean defaultVal)
Get boolean - if not found returns the default value. |
double |
getDouble(java.lang.String param)
Get double - if not found throws FtpException. |
double |
getDouble(java.lang.String param,
double defaultVal)
Get double - if not found returns the default value. |
int |
getInt(java.lang.String param)
Get integer - if not found throws FtpException. |
int |
getInt(java.lang.String param,
int defaultVal)
Get int - if not found returns the default value. |
java.util.Iterator<java.lang.String> |
getKeys()
Get configuration keys. |
long |
getLong(java.lang.String param)
Get long - if not found throws FtpException. |
long |
getLong(java.lang.String param,
long defaultVal)
Get long - if not found returns the default value. |
java.lang.String |
getString(java.lang.String param)
Get string - if not found throws FtpException. |
java.lang.String |
getString(java.lang.String param,
java.lang.String defaultVal)
Get string - if not found returns the default value. |
boolean |
isEmpty()
Is empty? |
Configuration |
subset(java.lang.String param)
Get sub configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Properties prop
protected java.lang.String prefix
Constructor Detail |
---|
protected PropertiesConfiguration()
public PropertiesConfiguration(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public PropertiesConfiguration(java.util.Properties prop)
Method Detail |
---|
public boolean isEmpty()
isEmpty
in interface Configuration
public java.lang.String getString(java.lang.String param) throws FtpException
getString
in interface Configuration
FtpException
public java.lang.String getString(java.lang.String param, java.lang.String defaultVal)
getString
in interface Configuration
public int getInt(java.lang.String param) throws FtpException
getInt
in interface Configuration
FtpException
public int getInt(java.lang.String param, int defaultVal)
getInt
in interface Configuration
public long getLong(java.lang.String param) throws FtpException
getLong
in interface Configuration
FtpException
public long getLong(java.lang.String param, long defaultVal)
getLong
in interface Configuration
public boolean getBoolean(java.lang.String param) throws FtpException
getBoolean
in interface Configuration
FtpException
public boolean getBoolean(java.lang.String param, boolean defaultVal)
getBoolean
in interface Configuration
public double getDouble(java.lang.String param) throws FtpException
getDouble
in interface Configuration
FtpException
public double getDouble(java.lang.String param, double defaultVal)
getDouble
in interface Configuration
public Configuration subset(java.lang.String param)
subset
in interface Configuration
public java.util.Iterator<java.lang.String> getKeys()
getKeys
in interface Configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |