|
All LDAP Classes Internal LDAP Classes |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.ldap.resources.ResourcesHandler
A utility class to get strings from the ExceptionMessages and ResultCodeMessages resources.
| Field Summary | |
private static java.util.Locale |
defaultLocale
The default Locale |
private static java.util.ResourceBundle |
defaultMessages
Initialized when the first Exception message string is requested |
private static java.util.ResourceBundle |
defaultResultCodes
|
private static java.lang.String |
pkg
Package where resources are found |
| Constructor Summary | |
private |
ResourcesHandler()
|
| Method Summary | |
static java.lang.String |
getMessage(java.lang.String messageOrKey,
java.lang.Object[] arguments)
Returns a string using the MessageOrKey as a key into ExceptionMessages or, if the Key does not exist, returns the string messageOrKey. |
static java.lang.String |
getMessage(java.lang.String messageOrKey,
java.lang.Object[] arguments,
java.util.Locale locale)
Returns the message stored in the ExceptionMessages resource for the specified locale using messageOrKey and argments passed into the constructor. |
static java.lang.String |
getResultString(int code)
Returns a string representing the LDAP result code from the default ResultCodeMessages resource. |
static java.lang.String |
getResultString(int code,
java.util.Locale locale)
Returns a string representing the LDAP result code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.ResourceBundle defaultResultCodes
private static java.util.ResourceBundle defaultMessages
private static java.lang.String pkg
private static java.util.Locale defaultLocale
| Constructor Detail |
private ResourcesHandler()
| Method Detail |
public static java.lang.String getMessage(java.lang.String messageOrKey,
java.lang.Object[] arguments)
messageOrKey - Key string for the resource.
arguments -
public static java.lang.String getMessage(java.lang.String messageOrKey,
java.lang.Object[] arguments,
java.util.Locale locale)
messageOrKey - Key string for the resource.
arguments - locale - The Locale that should be used to pull message
strings out of ExceptionMessages.
public static java.lang.String getResultString(int code)
code - the result code
public static java.lang.String getResultString(int code,
java.util.Locale locale)
code - the result code
locale - The Locale that should be used to pull message
strings out of ResultMessages.
|
All LDAP Classes Internal LDAP Classes |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||