protected class UnboundIDConnection.UnboundIDSearchIterator extends UnboundIDConnection.AbstractUnboundIDSearch implements SearchIterator
| Modifier and Type | Class and Description |
|---|---|
protected class |
UnboundIDConnection.UnboundIDSearchIterator.SearchResultIterator
Search results listener for storing entries returned by the search operation.
|
| Modifier and Type | Field and Description |
|---|---|
private Response<Void> |
response
Response data.
|
private UnboundIDConnection.UnboundIDSearchIterator.SearchResultIterator |
resultIterator
Search result iterator.
|
request, util| Constructor and Description |
|---|
UnboundIDSearchIterator(SearchRequest sr)
Creates a new unbound id search iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any resources associated with this iterator.
|
Response<Void> |
getResponse()
Returns the response data associated with this search or null if this iterator has more ldap entries to return.
|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
void |
initialize()
Initializes this unbound id search iterator.
|
SearchItem |
next()
Returns the next element in the iteration.
|
protected UnboundIDConnection.UnboundIDSearchIterator.SearchResultIterator |
search(com.unboundid.ldap.sdk.LDAPConnection conn,
SearchRequest sr)
Executes an ldap search.
|
getDereferencePolicy, getSearchRequest, getSearchScope, ignoreSearchException, processIntermediateResponse, processSearchResultEntry, processSearchResultReferenceprivate UnboundIDConnection.UnboundIDSearchIterator.SearchResultIterator resultIterator
public UnboundIDSearchIterator(SearchRequest sr)
sr - search requestpublic void initialize()
throws LdapException
LdapException - if an error occursprotected UnboundIDConnection.UnboundIDSearchIterator.SearchResultIterator search(com.unboundid.ldap.sdk.LDAPConnection conn, SearchRequest sr) throws LdapException
conn - to search withsr - to read properties fromLdapException - if an error occurspublic boolean hasNext()
throws LdapException
SearchIteratorhasNext in interface SearchIteratorLdapException - if an error occurspublic SearchItem next() throws LdapException
SearchIteratornext in interface SearchIteratorLdapException - if an error occurspublic Response<Void> getResponse()
SearchIteratorgetResponse in interface SearchIteratorpublic void close()
throws LdapException
SearchIteratorclose in interface SearchIteratorLdapException - if an error occursCopyright © 2003-2019 Virginia Tech. All Rights Reserved.