|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ldap.support.LdapUtils
public final class LdapUtils
Generic utility methods for working with LDAP. Mainly for internal use within the framework, but also useful for custom code.
| Method Summary | |
|---|---|
static void |
closeContext(DirContext context)
Close the given JNDI Context and ignore any thrown exception. |
static NamingException |
convertLdapException(NamingException ex)
Convert the specified checked NamingException to a Spring LDAP
runtime NamingException
equivalent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void closeContext(DirContext context)
finally blocks in JNDI code.
context - the JNDI Context to close (may be null)public static NamingException convertLdapException(NamingException ex)
NamingException to a Spring LDAP
runtime NamingException
equivalent.
ex - the original checked NamingException to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||