Class LdapReferralException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapOperationException
org.apache.directory.api.ldap.model.exception.AbstractLdapReferralException
org.apache.directory.api.ldap.model.exception.LdapReferralException
- All Implemented Interfaces:
Serializable
A
LdapOperationException which associates a resultCode namely the
ResultCodeEnum.REFERRAL resultCode with the exception.- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields inherited from class LdapOperationException
resolvedDn, resultCode -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of LdapReferralException.LdapReferralException(Collection<String> refs, String explanation) Creates a new instance of LdapReferralException. -
Method Summary
Modifier and TypeMethodDescriptionNot yet implementedgetReferralContext(Map<?, ?> arg) Not yet implementedGet the remaining DnGet the reolved ObjectAlways returnsResultCodeEnum.REFERRALvoidRetry.voidsetRemainingDn(Dn remainingDn) Set the remaining DnvoidsetResolvedObject(Object resolvedObject) Set the reolved ObjectbooleanMove to the next referralMethods inherited from class LdapOperationException
getResolvedDn, setResolvedDnMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LdapReferralException
Creates a new instance of LdapReferralException.- Parameters:
refs- The list of referrals
-
LdapReferralException
Creates a new instance of LdapReferralException.- Parameters:
refs- The list of referralsexplanation- The associated error message
-
-
Method Details
-
getResultCode
Always returnsResultCodeEnum.REFERRAL- Overrides:
getResultCodein classAbstractLdapReferralException- Returns:
- The ResultCode
-
getReferralInfo
- Returns:
- The current Referral
-
getReferralContext
Not yet implemented- Overrides:
getReferralContextin classAbstractLdapReferralException- Returns:
- The Referral Context
- Throws:
NamingException- If the operation failed
-
getReferralContext
Not yet implemented- Overrides:
getReferralContextin classAbstractLdapReferralException- Parameters:
arg- The arguments- Returns:
- The referral context
- Throws:
NamingException- If the operation failed
-
skipReferral
public boolean skipReferral()Move to the next referral- Returns:
- true if there is some next referral
-
retryReferral
public void retryReferral()Retry. Not yet implemented- Overrides:
retryReferralin classAbstractLdapReferralException
-
getRemainingDn
Description copied from class:AbstractLdapReferralExceptionGet the remaining Dn- Overrides:
getRemainingDnin classAbstractLdapReferralException- Returns:
- the remainingDn
-
setRemainingDn
Description copied from class:AbstractLdapReferralExceptionSet the remaining Dn- Overrides:
setRemainingDnin classAbstractLdapReferralException- Parameters:
remainingDn- the remainingName to set
-
getResolvedObject
Description copied from class:AbstractLdapReferralExceptionGet the reolved Object- Overrides:
getResolvedObjectin classAbstractLdapReferralException- Returns:
- the resolvedObject
-
setResolvedObject
Description copied from class:AbstractLdapReferralExceptionSet the reolved Object- Overrides:
setResolvedObjectin classAbstractLdapReferralException- Parameters:
resolvedObject- the resolvedObject to set
-