protected class UnboundIDConnection.UnboundIDAsyncSearchListener extends UnboundIDConnection.AbstractUnboundIDSearch implements com.unboundid.ldap.sdk.AsyncSearchResultListener, com.unboundid.ldap.sdk.IntermediateResponseListener
Modifier and Type | Field and Description |
---|---|
private com.unboundid.ldap.sdk.DisconnectHandler |
handler
Receives disconnect notifications for this async operation.
|
private SearchListener |
listener
Search result listener.
|
private com.unboundid.ldap.sdk.AsyncRequestID |
requestID
Request ID of the search operation.
|
request, util
Constructor and Description |
---|
UnboundIDAsyncSearchListener(SearchRequest sr,
SearchListener sl)
Creates a new unbound id search listener.
|
Modifier and Type | Method and Description |
---|---|
com.unboundid.ldap.sdk.AsyncRequestID |
getRequestID()
Returns the request ID.
|
void |
initialize()
Initializes this unbound id search listener.
|
void |
intermediateResponseReturned(com.unboundid.ldap.sdk.IntermediateResponse res) |
protected void |
search(com.unboundid.ldap.sdk.LDAPConnection conn,
SearchRequest sr)
Executes an ldap search.
|
void |
searchEntryReturned(com.unboundid.ldap.sdk.SearchResultEntry entry) |
void |
searchReferenceReturned(com.unboundid.ldap.sdk.SearchResultReference ref) |
void |
searchResultReceived(com.unboundid.ldap.sdk.AsyncRequestID id,
com.unboundid.ldap.sdk.SearchResult res) |
getDereferencePolicy, getSearchRequest, getSearchScope, ignoreSearchException, processIntermediateResponse, processSearchResultEntry, processSearchResultReference
private final SearchListener listener
private com.unboundid.ldap.sdk.AsyncRequestID requestID
private final com.unboundid.ldap.sdk.DisconnectHandler handler
public UnboundIDAsyncSearchListener(SearchRequest sr, SearchListener sl)
sr
- search requestsl
- search listenerpublic com.unboundid.ldap.sdk.AsyncRequestID getRequestID()
public void initialize() throws LdapException
LdapException
- if an error occursprotected void search(com.unboundid.ldap.sdk.LDAPConnection conn, SearchRequest sr) throws LdapException
conn
- to search withsr
- to read properties fromLdapException
- if an error occurspublic void searchEntryReturned(com.unboundid.ldap.sdk.SearchResultEntry entry)
searchEntryReturned
in interface com.unboundid.ldap.sdk.SearchResultListener
public void searchReferenceReturned(com.unboundid.ldap.sdk.SearchResultReference ref)
searchReferenceReturned
in interface com.unboundid.ldap.sdk.SearchResultListener
public void intermediateResponseReturned(com.unboundid.ldap.sdk.IntermediateResponse res)
intermediateResponseReturned
in interface com.unboundid.ldap.sdk.IntermediateResponseListener
public void searchResultReceived(com.unboundid.ldap.sdk.AsyncRequestID id, com.unboundid.ldap.sdk.SearchResult res)
searchResultReceived
in interface com.unboundid.ldap.sdk.AsyncSearchResultListener
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.