Package org.ldaptive.provider.opendj
Class OpenDJConnection.OpenDJAsyncSearchListener
- java.lang.Object
-
- org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
-
- org.ldaptive.provider.opendj.OpenDJConnection.OpenDJAsyncSearchListener
-
- All Implemented Interfaces:
org.forgerock.opendj.ldap.IntermediateResponseHandler,org.forgerock.opendj.ldap.ResultHandler<org.forgerock.opendj.ldap.responses.Result>,org.forgerock.opendj.ldap.SearchResultHandler
- Enclosing class:
- OpenDJConnection
protected class OpenDJConnection.OpenDJAsyncSearchListener extends OpenDJConnection.AbstractOpenDJSearch implements org.forgerock.opendj.ldap.SearchResultHandler, org.forgerock.opendj.ldap.IntermediateResponseHandler
Search listener for opendj id async search results.
-
-
Field Summary
Fields Modifier and Type Field Description private SearchListenerlistenerSearch result listener.-
Fields inherited from class org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
request, util
-
-
Constructor Summary
Constructors Constructor Description OpenDJAsyncSearchListener(SearchRequest sr, SearchListener sl)Creates a new opendj async search listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleEntry(org.forgerock.opendj.ldap.responses.SearchResultEntry entry)voidhandleErrorResult(org.forgerock.opendj.ldap.ErrorResultException e)booleanhandleIntermediateResponse(org.forgerock.opendj.ldap.responses.IntermediateResponse res)booleanhandleReference(org.forgerock.opendj.ldap.responses.SearchResultReference ref)voidhandleResult(org.forgerock.opendj.ldap.responses.Result r)voidinitialize()Initializes this opendj async search listener.protected voidsearch(org.forgerock.opendj.ldap.Connection conn, SearchRequest sr)Executes an asynchronous ldap search.-
Methods inherited from class org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
getDereferencePolicy, getSearchRequest, getSearchScope, ignoreSearchException, processIntermediateResponse, processSearchResultEntry, processSearchResultReference
-
-
-
-
Field Detail
-
listener
private final SearchListener listener
Search result listener.
-
-
Constructor Detail
-
OpenDJAsyncSearchListener
public OpenDJAsyncSearchListener(SearchRequest sr, SearchListener sl)
Creates a new opendj async search listener.- Parameters:
sr- search requestsl- search listener
-
-
Method Detail
-
initialize
public void initialize() throws LdapExceptionInitializes this opendj async search listener.- Throws:
LdapException- if an error occurs
-
search
protected void search(org.forgerock.opendj.ldap.Connection conn, SearchRequest sr) throws LdapExceptionExecutes an asynchronous ldap search.- Parameters:
conn- to search withsr- to read properties from- Throws:
LdapException- if an error occurs
-
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
-
handleIntermediateResponse
public boolean handleIntermediateResponse(org.forgerock.opendj.ldap.responses.IntermediateResponse res)
- Specified by:
handleIntermediateResponsein interfaceorg.forgerock.opendj.ldap.IntermediateResponseHandler
-
-