org.ldaptive.provider.opendj
Class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator

java.lang.Object
  extended by 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
protected  Queue<org.ldaptive.provider.SearchItem> queue
          Search items.
 
Constructor Summary
protected OpenDJConnection.OpenDJSearchIterator.SearchResultIterator()
           
 
Method Summary
 org.forgerock.opendj.ldap.responses.Result getResult()
          Returns the result of the search.
 boolean handleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)
          
 void handleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e)
          
 boolean handleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)
          
 void handleResult(org.forgerock.opendj.ldap.responses.Result r)
          
 boolean hasNext()
          Whether the queue is empty.
 org.ldaptive.provider.SearchItem next()
          Returns the next search item from the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected final Queue<org.ldaptive.provider.SearchItem> queue
Search items.

Constructor Detail

OpenDJConnection.OpenDJSearchIterator.SearchResultIterator

protected OpenDJConnection.OpenDJSearchIterator.SearchResultIterator()
Method Detail

next

public org.ldaptive.provider.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:
handleErrorResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>

handleResult

public void handleResult(org.forgerock.opendj.ldap.responses.Result r)

Specified by:
handleResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>

handleEntry

public boolean handleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)

Specified by:
handleEntry in interface org.forgerock.opendj.ldap.SearchResultHandler

handleReference

public boolean handleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)

Specified by:
handleReference in interface org.forgerock.opendj.ldap.SearchResultHandler


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.