public class LdapReferralException extends AbstractLdapReferralException
LdapOperationException which associates a resultCode namely the
ResultCodeEnum.REFERRAL resultCode with the exception.| Modifier and Type | Field and Description |
|---|---|
private int |
index
The current index in the list of referrals
|
private List<String> |
refs
The list of referrals
|
private Dn |
remainingDn
The remaining Dn
|
private Object |
resolvedObject
The resolved Object
|
(package private) static long |
serialVersionUID
The serial version UUID
|
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()
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, setResolvedDnaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringstatic final long serialVersionUID
private int index
private Dn remainingDn
private Object resolvedObject
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.REFERRALgetResultCode in class AbstractLdapReferralExceptionpublic String getReferralInfo()
public Context getReferralContext() throws NamingException
getReferralContext in class AbstractLdapReferralExceptionNamingException - If the operation failedpublic Context getReferralContext(Map<?,?> arg) throws NamingException
getReferralContext in class AbstractLdapReferralExceptionarg - The argumentsNamingException - If the operation failedpublic 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–2022 The Apache Software Foundation. All rights reserved.