protected abstract class ApacheLdapConnection.AbstractApacheLdapSearch extends Object
Modifier and Type | Field and Description |
---|---|
protected SearchRequest |
request
Search request.
|
protected ApacheLdapUtils |
util
Utility class.
|
Constructor and Description |
---|
AbstractApacheLdapSearch(SearchRequest sr)
Creates a new abstract apache ldap search.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.directory.api.ldap.model.message.AliasDerefMode |
getAliasDerefMode(DerefAliases deref)
Returns the apache ldap alias deref mode for the supplied deref aliases.
|
protected org.apache.directory.api.ldap.model.message.SearchRequest |
getSearchRequest(SearchRequest sr)
Returns an apache ldap search request object configured with the supplied search request.
|
protected org.apache.directory.api.ldap.model.message.SearchScope |
getSearchScope(SearchScope ss)
Returns the apache ldap search scope for the supplied search scope.
|
protected SearchItem |
processIntermediateResponse(org.apache.directory.api.ldap.model.message.IntermediateResponse res)
Processes the response controls on the supplied response and returns a corresponding search item.
|
protected SearchItem |
processSearchResultEntry(org.apache.directory.api.ldap.model.message.SearchResultEntry entry)
Processes the response controls on the supplied entry and returns a corresponding search item.
|
protected SearchItem |
processSearchResultReference(org.apache.directory.api.ldap.model.message.SearchResultReference ref)
Processes the response controls on the supplied reference and returns a corresponding search item.
|
protected org.apache.directory.api.ldap.model.cursor.SearchCursor |
search(org.apache.directory.ldap.client.api.LdapNetworkConnection conn,
SearchRequest sr)
Executes an ldap search.
|
protected final SearchRequest request
protected final ApacheLdapUtils util
public AbstractApacheLdapSearch(SearchRequest sr)
sr
- search requestprotected org.apache.directory.api.ldap.model.cursor.SearchCursor search(org.apache.directory.ldap.client.api.LdapNetworkConnection conn, SearchRequest sr) throws org.apache.directory.api.ldap.model.exception.LdapException
conn
- to search withsr
- to read properties fromorg.apache.directory.api.ldap.model.exception.LdapException
- if an error occursprotected org.apache.directory.api.ldap.model.message.SearchRequest getSearchRequest(SearchRequest sr) throws org.apache.directory.api.ldap.model.exception.LdapException
sr
- search request containing configuration to create apache ldap search requestorg.apache.directory.api.ldap.model.exception.LdapException
- if the search request cannot be initializedprotected org.apache.directory.api.ldap.model.message.SearchScope getSearchScope(SearchScope ss)
ss
- search scopeprotected org.apache.directory.api.ldap.model.message.AliasDerefMode getAliasDerefMode(DerefAliases deref)
deref
- deref aliasesprotected SearchItem processSearchResultEntry(org.apache.directory.api.ldap.model.message.SearchResultEntry entry)
entry
- to processprotected SearchItem processSearchResultReference(org.apache.directory.api.ldap.model.message.SearchResultReference ref)
ref
- to processprotected SearchItem processIntermediateResponse(org.apache.directory.api.ldap.model.message.IntermediateResponse res)
res
- to processCopyright © 2003-2019 Virginia Tech. All Rights Reserved.