public final class LdapProperties extends Object
LdapProperties
attempts to load the configuration properties
from a properties file in the classpath for a PropertyConfig
object. The default properties file is '/ldap.properties'.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_FILE
Default file to read properties from, value is "/ldap.properties".
|
Constructor and Description |
---|
LdapProperties(PropertyConfig pc)
This will create a new
LdapProperties for the supplied
properties config. |
LdapProperties(PropertyConfig pc,
InputStream is)
This will create a new
LdapProperties with the supplied
properties properties config and input stream. |
Modifier and Type | Method and Description |
---|---|
void |
configure()
|
Properties |
getProperties()
This returns the name of the properties being used by this
LdapProperties . |
boolean |
isPropertySet(String key)
This returns whether the supplied key has already been set.
|
void |
setProperty(String key,
String value)
This sets the supplied key and value in the ldap properties.
|
void |
useDefaultPropertiesFile()
This will load properties from the default properties file.
|
void |
useProperties(InputStream is)
This will load properties from the supplied input stream.
|
public static final String PROPERTIES_FILE
public LdapProperties(PropertyConfig pc)
LdapProperties
for the supplied
properties config.pc
- object to set properties forpublic LdapProperties(PropertyConfig pc, InputStream is)
LdapProperties
with the supplied
properties properties config and input stream.pc
- object to set properties foris
- InputStream
containing propertiespublic void useDefaultPropertiesFile()
public void useProperties(InputStream is)
is
- InputStream
containing propertiespublic Properties getProperties()
LdapProperties
.Properties
public void setProperty(String key, String value)
key
- String
value
- String
public boolean isPropertySet(String key)
key
- String
boolean
public void configure()
Copyright © 2018. All rights reserved.