org.apache.directory.api.ldap.model.cursor
Interface SearchCursor
- All Superinterfaces:
- 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
| Methods inherited from interface org.apache.directory.api.ldap.model.cursor.Cursor |
after, afterLast, available, before, beforeFirst, close, close, first, get, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, next, previous, setClosureMonitor, toString |
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
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.