org.ldaptive.provider.opendj
Class OpenDJConnection.OpenDJAsyncSearchListener

java.lang.Object
  extended by org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
      extended by 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 inherited from class org.ldaptive.provider.opendj.OpenDJConnection.AbstractOpenDJSearch
request, util
 
Constructor Summary
OpenDJConnection.OpenDJAsyncSearchListener(org.ldaptive.SearchRequest sr, org.ldaptive.provider.SearchListener sl)
          Creates a new opendj async search listener.
 
Method Summary
 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, org.ldaptive.SearchRequest sr)
          Executes an asynchronous 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.OpenDJAsyncSearchListener

public OpenDJConnection.OpenDJAsyncSearchListener(org.ldaptive.SearchRequest sr,
                                                  org.ldaptive.provider.SearchListener sl)
Creates a new opendj async search listener.

Parameters:
sr - search request
sl - search listener
Method Detail

initialize

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

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

search

protected void search(org.forgerock.opendj.ldap.Connection conn,
                      org.ldaptive.SearchRequest sr)
               throws org.ldaptive.LdapException
Executes an asynchronous ldap search.

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

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

handleIntermediateResponse

public boolean handleIntermediateResponse(org.forgerock.opendj.ldap.responses.IntermediateResponse res)

Specified by:
handleIntermediateResponse in interface org.forgerock.opendj.ldap.IntermediateResponseHandler


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