public class LdapReferralException extends AbstractLdapReferralException
LdapOperationException
which associates a resultCode namely the
ResultCodeEnum.REFERRAL
resultCode with the exception.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()
Not yet implemented
|
Context |
getReferralContext(Map<?,?> arg)
Not yet implemented
|
String |
getReferralInfo() |
Dn |
getRemainingDn() |
Object |
getResolvedObject() |
ResultCodeEnum |
getResultCode()
Always returns
ResultCodeEnum.REFERRAL |
void |
retryReferral()
Retry.
|
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
public String getReferralInfo()
public Context getReferralContext() throws NamingException
getReferralContext
in class AbstractLdapReferralException
NamingException
- If the operation failedpublic Context getReferralContext(Map<?,?> arg) throws NamingException
getReferralContext
in class AbstractLdapReferralException
arg
- The argumentsNamingException
- If the operation failedpublic 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–2019 The Apache Software Foundation. All rights reserved.