edu.vt.middleware.ldap.props
public final class LdapProperties extends java.lang.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 java.lang.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,
java.io.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()
|
java.util.Properties |
getProperties()
This returns the name of the properties being used by this
LdapProperties . |
boolean |
isPropertySet(java.lang.String key)
This returns whether the supplied key has already been set.
|
void |
setProperty(java.lang.String key,
java.lang.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(java.io.InputStream is)
This will load properties from the supplied input stream.
|
public static final java.lang.String PROPERTIES_FILE
public LdapProperties(PropertyConfig pc)
LdapProperties
for the supplied
properties config.pc
- object to set properties forpublic LdapProperties(PropertyConfig pc, java.io.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(java.io.InputStream is)
is
- InputStream
containing propertiespublic java.util.Properties getProperties()
LdapProperties
.Properties
public void setProperty(java.lang.String key, java.lang.String value)
key
- String
value
- String
public boolean isPropertySet(java.lang.String key)
key
- String
boolean
public void configure()
Copyright © 2014. All Rights Reserved.