public class SearchOperation extends AbstractOperation<SearchRequest,SearchResult>
AbstractOperation.ReopenOperationExceptionHandler
Modifier and Type | Field and Description |
---|---|
private Cache<SearchRequest> |
cache
Cache to use when performing searches.
|
logger
Constructor and Description |
---|
SearchOperation(Connection conn)
Creates a new search operation.
|
SearchOperation(Connection conn,
Cache<SearchRequest> c)
Creates a new search operation.
|
Modifier and Type | Method and Description |
---|---|
protected Response<SearchResult> |
executeSearch(SearchRequest request)
Performs the ldap search.
|
Cache<SearchRequest> |
getCache()
Returns the cache to check when performing search operations.
|
protected Response<SearchResult> |
invoke(SearchRequest request)
Call the provider specific implementation of this ldap operation.
|
protected SearchResult |
readResult(SearchRequest request,
SearchIterator si)
Invokes the provider search operation and iterates over the results.
|
void |
setCache(Cache<SearchRequest> c)
Sets the cache.
|
execute, executeHandlers, getConnection, getOperationExceptionHandler, getOperationResponseHandlers, setOperationExceptionHandler, setOperationResponseHandlers, toString
private Cache<SearchRequest> cache
public SearchOperation(Connection conn)
conn
- connectionpublic SearchOperation(Connection conn, Cache<SearchRequest> c)
conn
- connectionc
- cachepublic Cache<SearchRequest> getCache()
public void setCache(Cache<SearchRequest> c)
c
- cache to setprotected Response<SearchResult> invoke(SearchRequest request) throws LdapException
AbstractOperation
invoke
in class AbstractOperation<SearchRequest,SearchResult>
request
- ldap requestLdapException
- if the invocation failsprotected Response<SearchResult> executeSearch(SearchRequest request) throws LdapException
request
- to invoke search withLdapException
- if an error occursprotected SearchResult readResult(SearchRequest request, SearchIterator si) throws LdapException
request
- used to create the search iteratorsi
- search iteratorLdapException
- if an error occursCopyright © 2003-2019 Virginia Tech. All Rights Reserved.