Interface SearchCursor

All Superinterfaces:
AutoCloseable, Closeable, Cursor<Response>, Iterable<Response>

public interface SearchCursor extends Cursor<Response>
An extension of Cursor which includes the retrieval of the SearchResultDone.
Author:
Apache Directory Project
  • Method Details

    • isDone

      boolean isDone()
      Returns:
      true if the cursor has processed all the elements we were searching
    • getSearchResultDone

      SearchResultDone getSearchResultDone()
      gives the SearchResultDone message received at the end of search results
      Returns:
      the SearchResultDone message, null if the search operation fails for any reason
    • isReferral

      boolean isReferral()
      Returns:
      true if the next element in the cursor is a referral
    • getReferral

      Referral getReferral() throws LdapException
      Returns:
      The next referral element, if it's a referral
      Throws:
      LdapException - If the
    • isEntry

      boolean isEntry()
      Returns:
      true if the next element in the cursor is an entry
    • getEntry

      Entry getEntry() throws LdapException
      Returns:
      The next entry element, if it's an entry
      Throws:
      LdapException - If the
    • isIntermediate

      boolean isIntermediate()
      Returns:
      true if the next element in the cursor is an intermediate response
    • getIntermediate

      IntermediateResponse getIntermediate() throws LdapException
      Returns:
      The next intermediate response element, if it's an intermediate response
      Throws:
      LdapException - If the