com.ca.jcs.sdkws
Class SDKWSExceptionMapper

java.lang.Object
  extended by com.ca.jcs.sdkws.SDKWSExceptionMapper

public class SDKWSExceptionMapper
extends Object

NOT IN USE YET.


Field Summary
static Map<String,Class> EXCEPTION_MAP
          Supported exception class mapping
 
Constructor Summary
SDKWSExceptionMapper(String ldapExceptionPrefix, Map<String,List<String>> map)
          Constructs the exception mapper from the attributes object.
 
Method Summary
 NamingException map(AxisFault axisFault)
          Maps exceptions that come from the endpoint into a saine LDAP exception.
 String toString()
          Creates a string dump of the mappings map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXCEPTION_MAP

public static final Map<String,Class> EXCEPTION_MAP
Supported exception class mapping

Constructor Detail

SDKWSExceptionMapper

public SDKWSExceptionMapper(String ldapExceptionPrefix,
                            Map<String,List<String>> map)
                     throws NamingException
Constructs the exception mapper from the attributes object.

Parameters:
ldapExceptionPrefix - the error prefix.
map - the mapping that may contains exception name to endpoint error code.
Throws:
NamingException - if any errors occur during the setup of the exception mappings.
Method Detail

map

public NamingException map(AxisFault axisFault)
                    throws NamingException
Maps exceptions that come from the endpoint into a saine LDAP exception.

Parameters:
axisFault - the endpoint exception.
Returns:
the newly created LDAP exception.
Throws:
NamingException - if any problems occur.

toString

public String toString()
Creates a string dump of the mappings map. Uses the word Empty if the mappings map is null or empty.

Overrides:
toString in class Object
Returns:
a string of the contents of the mapping object.


Created 2011-07-14 13:27 EST