public final class ProviderUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
ProviderUtils()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
throwOperationException(ResultCode[] operationRetryResultCodes,
Exception e,
int resultCode,
String matchedDn,
ResponseControl[] respControls,
String[] referralUrls,
boolean throwLdapException)
Determines whether to throw operation exception or ldap exception.
|
static void |
throwOperationException(ResultCode[] operationRetryResultCodes,
String msg,
int resultCode,
String matchedDn,
ResponseControl[] respControls,
String[] referralUrls,
boolean throwLdapException)
Determines whether to throw operation exception or ldap exception.
|
public static void throwOperationException(ResultCode[] operationRetryResultCodes, Exception e, int resultCode, String matchedDn, ResponseControl[] respControls, 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, String msg, int resultCode, String matchedDn, ResponseControl[] respControls, 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 outCopyright © 2003-2019 Virginia Tech. All Rights Reserved.