com.ca.jcs.jndi
Class JNDIExceptionToLdapMapper

java.lang.Object
  extended by com.ca.jcs.jndi.JNDIExceptionToLdapMapper

public class JNDIExceptionToLdapMapper
extends Object

Map exceptions from target JNDI NamingException to LdapNamingExceptions with meaningful result codes where possible. Called to deal with exceptions generated by ApacheDS internally as well as those received from managed systems by the JNDI connector.


Field Summary
static String RESULT_CODE_REGEX
           
 
Constructor Summary
JNDIExceptionToLdapMapper()
           
JNDIExceptionToLdapMapper(Collection<String> msgs)
           
 
Method Summary
static void main(String[] args)
           
 NamingException mapJNDIExceptionToLdap(NamingException ne, String explanation)
           
 void mapJNDIExceptionToLdapAndThrow(NamingException ne, String explanation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_CODE_REGEX

public static final String RESULT_CODE_REGEX
See Also:
Constant Field Values
Constructor Detail

JNDIExceptionToLdapMapper

public JNDIExceptionToLdapMapper()

JNDIExceptionToLdapMapper

public JNDIExceptionToLdapMapper(Collection<String> msgs)
Method Detail

mapJNDIExceptionToLdap

public NamingException mapJNDIExceptionToLdap(NamingException ne,
                                              String explanation)

mapJNDIExceptionToLdapAndThrow

public void mapJNDIExceptionToLdapAndThrow(NamingException ne,
                                           String explanation)
                                    throws NamingException
Throws:
NamingException

main

public static void main(String[] args)


Created 2011-07-14 13:27 EST