protected class OpenDJConnection.OpenDJAsyncSearchListener extends OpenDJConnection.AbstractOpenDJSearch implements org.forgerock.opendj.ldap.SearchResultHandler, org.forgerock.opendj.ldap.IntermediateResponseHandler
| Modifier and Type | Field and Description |
|---|---|
private SearchListener |
listener
Search result listener.
|
request, util| Constructor and Description |
|---|
OpenDJAsyncSearchListener(SearchRequest sr,
SearchListener sl)
Creates a new opendj async search listener.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry) |
void |
handleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e) |
boolean |
handleIntermediateResponse(org.forgerock.opendj.ldap.responses.IntermediateResponse res) |
boolean |
handleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref) |
void |
handleResult(org.forgerock.opendj.ldap.responses.Result r) |
void |
initialize()
Initializes this opendj async search listener.
|
protected void |
search(org.forgerock.opendj.ldap.Connection conn,
SearchRequest sr)
Executes an asynchronous ldap search.
|
getDereferencePolicy, getSearchRequest, getSearchScope, ignoreSearchException, processIntermediateResponse, processSearchResultEntry, processSearchResultReferenceprivate final SearchListener listener
public OpenDJAsyncSearchListener(SearchRequest sr, SearchListener sl)
sr - search requestsl - search listenerpublic void initialize()
throws LdapException
LdapException - if an error occursprotected void search(org.forgerock.opendj.ldap.Connection conn,
SearchRequest sr)
throws LdapException
conn - to search withsr - to read properties fromLdapException - if an error occurspublic void handleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e)
handleErrorResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>public void handleResult(org.forgerock.opendj.ldap.responses.Result r)
handleResult in interface org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>public boolean handleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)
handleEntry in interface org.forgerock.opendj.ldap.SearchResultHandlerpublic boolean handleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)
handleReference in interface org.forgerock.opendj.ldap.SearchResultHandlerpublic boolean handleIntermediateResponse(org.forgerock.opendj.ldap.responses.IntermediateResponse res)
handleIntermediateResponse in interface org.forgerock.opendj.ldap.IntermediateResponseHandlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.