|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.infoengine.au.DirectoryProperties
public class DirectoryProperties
This class implements a Properties class that obtains properties from a directory service.
| Constructor Summary | |
|---|---|
DirectoryProperties()
Constructs an empty property list with no default values and no association to a directory entry. |
|
DirectoryProperties(java.util.Properties defaults)
Constructs an empty property list with the specified defaults, and no association to a directory entry. |
|
DirectoryProperties(java.util.Properties defaults,
java.lang.String url)
Constructs a property list with specified defaults, and with an association to a specified directory entry. |
|
DirectoryProperties(java.lang.String url)
Constructs a property list with no defaults, but with an association to a specified directory entry. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getDirectoryProperty(java.lang.String url,
java.lang.String key)
Returns a specified property from a specified attribute of a specified directory entry. |
static java.lang.String |
getDirectoryProperty(java.lang.String url,
java.lang.String key,
java.lang.String defaultValue)
Returns a specified property from a specified attribute of a specified directory entry. |
java.lang.String |
getUrl()
Returns the URL of the directory entry from which properties were loaded. |
void |
setUrl(java.lang.String url)
Sets the URL of the directory entry from which properties are obtained. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryProperties()
public DirectoryProperties(java.util.Properties defaults)
defaults - the defaults.
public DirectoryProperties(java.lang.String url)
throws IEException,
java.io.IOException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) to be read from the entry.
IEException - if the URL can not be used to read the
specified directory entry successfully, or
the JNDI adapter can not be loaded or
initialized successfully
java.io.IOException - if properties can not be loaded successfully
from the specified entry.
public DirectoryProperties(java.util.Properties defaults,
java.lang.String url)
throws IEException,
java.io.IOException
defaults - the defaults.url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) to be read from the entry.
IEException - if the URL can not be used to read the
specified directory entry successfully, or
the JNDI adapter can not be loaded or
initialized successfully
java.io.IOException - if properties can not be loaded successfully
from the specified entry.| Method Detail |
|---|
public void setUrl(java.lang.String url)
throws IEException,
java.io.IOException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) containing properties to be read from
the entry.
IEException - if the URL can not be used to read the
specified directory entry successfully.
java.io.IOException - if properties can not be loaded successfully
from the specified entry.public java.lang.String getUrl()
public static java.lang.String getDirectoryProperty(java.lang.String url,
java.lang.String key)
throws IEException,
java.io.IOException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) containing properties to be read from
the entry.key - The name of the property to return.
IEException - if the URL can not be used to read the
specified directory entry successfully.
java.io.IOException - if properties can not be loaded successfully
from the specified entry.
public static java.lang.String getDirectoryProperty(java.lang.String url,
java.lang.String key,
java.lang.String defaultValue)
throws IEException,
java.io.IOException
url - The LDAP URL of a directory entry. The URL must specify
the attribute(s) containing properties to be read from
the entry.key - The name of the property to return.defaultValue - The value to return when the specified property
can not be found in the specified directory entry.
IEException - if the URL can not be used to read the
specified directory entry successfully.
java.io.IOException - if properties can not be loaded successfully
from the specified entry.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||