org.ldaptive.provider.opendj
Class OpenDJConnection.OpenDJSearchIterator

java.lang.Object
  extended by org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
      extended by org.ldaptive.provider.opendj.OpenDJConnection.OpenDJSearchIterator
All Implemented Interfaces:
org.ldaptive.provider.SearchIterator
Enclosing class:
OpenDJConnection

protected class OpenDJConnection.OpenDJSearchIterator
extends OpenDJConnection.AbstractOpenDJSearch
implements org.ldaptive.provider.SearchIterator

Search iterator for opendj search results.


Nested Class Summary
protected  class OpenDJConnection.OpenDJSearchIterator.SearchResultIterator
          Search results handler for storing entries returned by a search operation.
 
Field Summary
 
Fields inherited from class org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
request, util
 
Constructor Summary
OpenDJConnection.OpenDJSearchIterator(org.ldaptive.SearchRequest sr)
          Creates a new opendj search iterator.
 
Method Summary
 void close()
          
 org.ldaptive.Response<Void> getResponse()
          
 boolean hasNext()
          
 void initialize()
          Initializes this opendj search iterator.
 org.ldaptive.provider.SearchItem next()
          
protected  OpenDJConnection.OpenDJSearchIterator.SearchResultIterator search(org.forgerock.opendj.ldap.Connection conn, org.ldaptive.SearchRequest sr)
          Executes an ldap search.
 
Methods inherited from class org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
getDereferencePolicy, getSearchRequest, getSearchScope, ignoreSearchException, processIntermediateResponse, processSearchResultEntry, processSearchResultReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenDJConnection.OpenDJSearchIterator

public OpenDJConnection.OpenDJSearchIterator(org.ldaptive.SearchRequest sr)
Creates a new opendj search iterator.

Parameters:
sr - search request
Method Detail

initialize

public void initialize()
                throws org.ldaptive.LdapException
Initializes this opendj search iterator.

Throws:
org.ldaptive.LdapException - if an error occurs

search

protected OpenDJConnection.OpenDJSearchIterator.SearchResultIterator search(org.forgerock.opendj.ldap.Connection conn,
                                                                            org.ldaptive.SearchRequest sr)
                                                                     throws org.ldaptive.LdapException
Executes an ldap search.

Parameters:
conn - to search with
sr - to read properties from
Returns:
ldap search results
Throws:
org.ldaptive.LdapException - if an error occurs

hasNext

public boolean hasNext()
                throws org.ldaptive.LdapException

Specified by:
hasNext in interface org.ldaptive.provider.SearchIterator
Throws:
org.ldaptive.LdapException

next

public org.ldaptive.provider.SearchItem next()
                                      throws org.ldaptive.LdapException

Specified by:
next in interface org.ldaptive.provider.SearchIterator
Throws:
org.ldaptive.LdapException

getResponse

public org.ldaptive.Response<Void> getResponse()

Specified by:
getResponse in interface org.ldaptive.provider.SearchIterator

close

public void close()
           throws org.ldaptive.LdapException

Specified by:
close in interface org.ldaptive.provider.SearchIterator
Throws:
org.ldaptive.LdapException


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