public class VirtualListViewClient extends Object
Modifier and Type | Field and Description |
---|---|
private Connection |
connection
Connection to invoke the search operation on.
|
protected Logger |
logger
Logger for this class.
|
private SortRequestControl |
sortControl
Used on the search operation.
|
Constructor and Description |
---|
VirtualListViewClient(Connection conn,
SortKey... keys)
Creates a new virtual list view client.
|
Modifier and Type | Method and Description |
---|---|
Response<SearchResult> |
execute(SearchRequest request,
VirtualListViewParams params)
Performs a search operation with the
VirtualListViewRequestControl . |
Response<SearchResult> |
execute(SearchRequest request,
VirtualListViewParams params,
Response<SearchResult> response)
Performs a search operation with the
VirtualListViewRequestControl . |
protected final Logger logger
private final Connection connection
private final SortRequestControl sortControl
public VirtualListViewClient(Connection conn, SortKey... keys)
conn
- to execute the search operation onkeys
- to supply to a sort request controlpublic Response<SearchResult> execute(SearchRequest request, VirtualListViewParams params) throws LdapException
VirtualListViewRequestControl
. The supplied
request is modified in the following way:
request
- search request to executeparams
- virtual list view dataLdapException
- if the search failspublic Response<SearchResult> execute(SearchRequest request, VirtualListViewParams params, Response<SearchResult> response) throws LdapException
VirtualListViewRequestControl
. The supplied
request is modified in the following way:
AbstractRequest.setControls( org.ldaptive.control.RequestControl...)
is invoked with SortRequestControl
and VirtualListViewRequestControl
The content count and context id are extracted from the supplied response and replayed as appropriate in the request.
request
- search request to executeparams
- virtual list view dataresponse
- of a previous VLV operationLdapException
- if the search failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.