public final class ProviderUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
ProviderUtils()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
throwOperationException(ResultCode[] operationRetryResultCodes,
java.lang.Exception e,
int resultCode,
java.lang.String matchedDn,
ResponseControl[] respControls,
java.lang.String[] referralUrls,
boolean throwLdapException)
Determines whether to throw operation exception or ldap exception.
|
static void |
throwOperationException(ResultCode[] operationRetryResultCodes,
java.lang.String msg,
int resultCode,
java.lang.String matchedDn,
ResponseControl[] respControls,
java.lang.String[] referralUrls,
boolean throwLdapException)
Determines whether to throw operation exception or ldap exception.
|
public static void throwOperationException(ResultCode[] operationRetryResultCodes, java.lang.Exception e, int resultCode, java.lang.String matchedDn, ResponseControl[] respControls, java.lang.String[] referralUrls, boolean throwLdapException) throws LdapException
operationRetryResultCodes - to compare result code againste - provider exception to wrapresultCode - provider result codematchedDn - response matched dnrespControls - response controlsreferralUrls - response referral urlsthrowLdapException - throw an ldap exception if an operation exception is not thrownOperationException - if the operation should be retriedLdapException - to propagate the exception outpublic static void throwOperationException(ResultCode[] operationRetryResultCodes, java.lang.String msg, int resultCode, java.lang.String matchedDn, ResponseControl[] respControls, java.lang.String[] referralUrls, boolean throwLdapException) throws LdapException
operationRetryResultCodes - to compare result code againstmsg - provider messageresultCode - provider result codematchedDn - response matched dnrespControls - response controlsreferralUrls - response referral urlsthrowLdapException - throw an ldap exception if an operation exception is not thrownOperationException - if the operation should be retriedLdapException - to propagate the exception out