Package org.ldaptive.provider.opendj
Class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator
- java.lang.Object
-
- org.ldaptive.provider.opendj.OpenDJConnection.OpenDJSearchIterator.SearchResultIterator
-
- All Implemented Interfaces:
org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>,org.forgerock.opendj.ldap.SearchResultHandler
- Enclosing class:
- OpenDJConnection.OpenDJSearchIterator
protected class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator extends Object implements org.forgerock.opendj.ldap.SearchResultHandler
Search results handler for storing entries returned by a search operation.
-
-
Field Summary
Fields Modifier and Type Field Description protected Queue<SearchItem>queueSearch items.private org.forgerock.opendj.ldap.responses.ResultresultSearch result.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSearchResultIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.opendj.ldap.responses.ResultgetResult()Returns the result of the search.booleanhandleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)voidhandleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e)booleanhandleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)voidhandleResult(org.forgerock.opendj.ldap.responses.Result r)booleanhasNext()Whether the queue is empty.SearchItemnext()Returns the next search item from the queue.
-
-
-
Field Detail
-
queue
protected final Queue<SearchItem> queue
Search items.
-
result
private org.forgerock.opendj.ldap.responses.Result result
Search result.
-
-
Method Detail
-
next
public SearchItem next()
Returns the next search item from the queue.- Returns:
- search item
-
getResult
public org.forgerock.opendj.ldap.responses.Result getResult()
Returns the result of the search.- Returns:
- search result
-
hasNext
public boolean hasNext()
Whether the queue is empty.- Returns:
- whether the queue is empty
-
handleErrorResult
public void handleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e)
- Specified by:
handleErrorResultin interfaceorg.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>
-
handleResult
public void handleResult(org.forgerock.opendj.ldap.responses.Result r)
- Specified by:
handleResultin interfaceorg.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>
-
handleEntry
public boolean handleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)
- Specified by:
handleEntryin interfaceorg.forgerock.opendj.ldap.SearchResultHandler
-
handleReference
public boolean handleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)
- Specified by:
handleReferencein interfaceorg.forgerock.opendj.ldap.SearchResultHandler
-
-