|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.provider.jndi.NamingExceptionUtils
public final class NamingExceptionUtils
Utility class that provides a bridge between JNDI naming exceptions and ldap result codes. See http://docs.oracle.com/javase/tutorial/jndi/ldap/exceptions.html
| Method Summary | |
|---|---|
static Class<? extends NamingException> |
getNamingException(ResultCode code)
Returns the naming exception that maps to the supplied result code. |
static ResultCode |
getResultCode(Class<? extends NamingException> clazz)
Returns the result code that map to the supplied naming exception. |
static ResultCode |
getResultCode(String message)
Returns the result code contained in the supplied naming exception message. |
static ResultCode[] |
getResultCodes(Class<? extends NamingException> clazz)
Returns the result codes that map to the supplied naming exception. |
static boolean |
matches(Class<? extends NamingException> clazz,
ResultCode code)
Returns whether the supplied naming exception maps to the supplied result code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ResultCode[] getResultCodes(Class<? extends NamingException> clazz)
clazz - naming exception
public static ResultCode getResultCode(Class<? extends NamingException> clazz)
clazz - naming exception
public static ResultCode getResultCode(String message)
message - naming exception message
public static boolean matches(Class<? extends NamingException> clazz,
ResultCode code)
clazz - naming exceptioncode - ldap result code
public static Class<? extends NamingException> getNamingException(ResultCode code)
code - ldap result code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||