com.stratelia.silverpeas.domains
Class DriverSettings
java.lang.Object
com.stratelia.silverpeas.domains.DriverSettings
- Direct Known Subclasses:
- LDAPSettings, SQLSettings
public abstract class DriverSettings
- extends Object
Extracting common code from LDAPSettings and SQLSettings
- Author:
- ehugonnet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriverSettings
public DriverSettings()
getSureString
protected String getSureString(ResourceLocator rs,
String key)
- Use this function to be sure to obtain a string without error, even if the property is not
found. (in that case, returns empty string)
- Parameters:
rs
- the properties filekey
- the key value to retreive
- Returns:
getStringValue
protected String getStringValue(ResourceLocator rs,
String key,
String defaultValue)
getBooleanValue
protected boolean getBooleanValue(ResourceLocator rs,
String key,
boolean defaultValue)
getIntValue
protected int getIntValue(ResourceLocator rs,
String key,
int defaultValue)
Copyright © 2016 Silverpeas. All Rights Reserved.