public class LdapReferralException extends AbstractLdapReferralException
LdapOperationException which associates a resultCode namely the
ResultCodeEnum.REFERRAL resultCode with the exception.resolvedDn, resultCode| Constructor and Description |
|---|
LdapReferralException(Collection<String> refs)
Creates a new instance of LdapReferralException.
|
LdapReferralException(Collection<String> refs,
String explanation)
Creates a new instance of LdapReferralException.
|
| Modifier and Type | Method and Description |
|---|---|
Context |
getReferralContext() |
Context |
getReferralContext(Hashtable<?,?> arg) |
String |
getReferralInfo() |
Dn |
getRemainingDn() |
Object |
getResolvedObject() |
ResultCodeEnum |
getResultCode()
Always returns
ResultCodeEnum.REFERRAL |
void |
retryReferral() |
void |
setRemainingDn(Dn remainingDn) |
void |
setResolvedObject(Object resolvedObject) |
boolean |
skipReferral()
Move to the next referral
|
getResolvedDn, setResolvedDnaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic LdapReferralException(Collection<String> refs)
refs - The list of referralspublic LdapReferralException(Collection<String> refs, String explanation)
refs - The list of referralsexplanation - The associated error messagepublic ResultCodeEnum getResultCode()
ResultCodeEnum.REFERRALgetResultCode in class AbstractLdapReferralExceptionLdapException#getResultCode()public String getReferralInfo()
public Context getReferralContext() throws NamingException
getReferralContext in class AbstractLdapReferralExceptionNamingExceptionpublic Context getReferralContext(Hashtable<?,?> arg) throws NamingException
getReferralContext in class AbstractLdapReferralExceptionNamingExceptionpublic boolean skipReferral()
public void retryReferral()
retryReferral in class AbstractLdapReferralExceptionpublic Dn getRemainingDn()
getRemainingDn in class AbstractLdapReferralExceptionpublic void setRemainingDn(Dn remainingDn)
setRemainingDn in class AbstractLdapReferralExceptionremainingDn - the remainingName to setpublic Object getResolvedObject()
getResolvedObject in class AbstractLdapReferralExceptionpublic void setResolvedObject(Object resolvedObject)
setResolvedObject in class AbstractLdapReferralExceptionresolvedObject - the resolvedObject to setCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.