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, setResolvedDn
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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.REFERRAL
getResultCode
in class AbstractLdapReferralException
LdapException#getResultCode()
public String getReferralInfo()
public Context getReferralContext() throws NamingException
getReferralContext
in class AbstractLdapReferralException
NamingException
public Context getReferralContext(Hashtable<?,?> arg) throws NamingException
getReferralContext
in class AbstractLdapReferralException
NamingException
public boolean skipReferral()
public void retryReferral()
retryReferral
in class AbstractLdapReferralException
public Dn getRemainingDn()
getRemainingDn
in class AbstractLdapReferralException
public void setRemainingDn(Dn remainingDn)
setRemainingDn
in class AbstractLdapReferralException
remainingDn
- the remainingName to setpublic Object getResolvedObject()
getResolvedObject
in class AbstractLdapReferralException
public void setResolvedObject(Object resolvedObject)
setResolvedObject
in class AbstractLdapReferralException
resolvedObject
- the resolvedObject to setCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.