org.apache.directory.api.ldap.model.cursor
Class CursorLdapReferralException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.api.ldap.model.cursor.CursorException
              extended by org.apache.directory.api.ldap.model.cursor.CursorLdapReferralException
All Implemented Interfaces:
Serializable

public class CursorLdapReferralException
extends CursorException

A specific form of CursorException used when a referral is met

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
static CursorLdapReferralException INSTANCE
          A static exception to be used by the monitor
 
Constructor Summary
CursorLdapReferralException(LdapReferralException ldapReferralException)
          Creates a new instance of CursorClosedException.
CursorLdapReferralException(LdapReferralException ldapReferralException, String message)
          Creates a new instance of CursorClosedException.
CursorLdapReferralException(LdapReferralException ldapReferralException, String message, Throwable cause)
          Creates a new instance of CursorClosedException.
 
Method Summary
 String getReferralInfo()
           
 Dn getRemainingDn()
           
 Object getResolvedObject()
           
 ResultCodeEnum getResultCode()
          Always returns ResultCodeEnum.REFERRAL
 boolean skipReferral()
          Move to the next referral
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final CursorLdapReferralException INSTANCE
A static exception to be used by the monitor

Constructor Detail

CursorLdapReferralException

public CursorLdapReferralException(LdapReferralException ldapReferralException)
Creates a new instance of CursorClosedException.


CursorLdapReferralException

public CursorLdapReferralException(LdapReferralException ldapReferralException,
                                   String message)
Creates a new instance of CursorClosedException.

Parameters:
message - The associated message

CursorLdapReferralException

public CursorLdapReferralException(LdapReferralException ldapReferralException,
                                   String message,
                                   Throwable cause)
Creates a new instance of CursorClosedException.

Parameters:
message - The associated message
cause - The original cause
Method Detail

getResultCode

public ResultCodeEnum getResultCode()
Always returns ResultCodeEnum.REFERRAL

See Also:
LdapException#getResultCode()

getReferralInfo

public String getReferralInfo()
Returns:
The current Referral

skipReferral

public boolean skipReferral()
Move to the next referral

Returns:
true if there is some next referral

getRemainingDn

public Dn getRemainingDn()
Returns:
the remainingDn

getResolvedObject

public Object getResolvedObject()
Returns:
the resolvedObject


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.