|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
com.infoengine.au.DirectoryProperties
This class implements a Properties class that obtains properties from a directory service.
Nested Class Summary |
Nested classes inherited from class java.util.Hashtable |
|
Field Summary | |
private String |
url
|
Fields inherited from class java.util.Properties |
defaults |
Fields inherited from class java.util.Hashtable |
|
Constructor Summary | |
DirectoryProperties()
Constructs an empty property list with no default values and no association to a directory entry. |
|
DirectoryProperties(Properties defaults)
Constructs an empty property list with the specified defaults, and no association to a directory entry. |
|
DirectoryProperties(Properties defaults,
String url)
Constructs a property list with specified defaults, and with an association to a specified directory entry. |
|
DirectoryProperties(String url)
Constructs a property list with no defaults, but with an association to a specified directory entry. |
Method Summary | |
static String |
getDirectoryProperty(String url,
String key)
Returns a specified property from a specified attribute of a specified directory entry. |
static String |
getDirectoryProperty(String url,
String key,
String defaultValue)
Returns a specified property from a specified attribute of a specified directory entry. |
String |
getUrl()
Returns the URL of the directory entry from which properties were loaded. |
void |
setUrl(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, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private String url
Constructor Detail |
public DirectoryProperties()
public DirectoryProperties(Properties defaults)
defaults
- the defaults.public DirectoryProperties(String url) throws IEException, 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
IOException
- if properties can not be loaded successfully
from the specified entry.public DirectoryProperties(Properties defaults, String url) throws IEException, 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
IOException
- if properties can not be loaded successfully
from the specified entry.Method Detail |
public void setUrl(String url) throws IEException, 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.
IOException
- if properties can not be loaded successfully
from the specified entry.public String getUrl()
public static String getDirectoryProperty(String url, String key) throws IEException, 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.
IOException
- if properties can not be loaded successfully
from the specified entry.public static String getDirectoryProperty(String url, String key, String defaultValue) throws IEException, 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.
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 |