Package org.ldaptive
Class SearchOperation.Builder
java.lang.Object
org.ldaptive.AbstractOperation.AbstractBuilder<SearchOperation.Builder,SearchOperation>
org.ldaptive.SearchOperation.Builder
- Enclosing class:
SearchOperation
public static class SearchOperation.Builder
extends AbstractOperation.AbstractBuilder<SearchOperation.Builder,SearchOperation>
Search operation builder.
-
Field Summary
Fields inherited from class org.ldaptive.AbstractOperation.AbstractBuilder
object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononEntry
(LdapEntryHandler... handlers) Sets the functions to execute when a search result entry is received.onReference
(SearchReferenceHandler... handlers) Sets the functions to execute when a search result reference is received.onSearchResult
(SearchResultHandler... handlers) Sets the functions to execute when a search result is complete.request
(SearchRequest request) Sets the search request.protected SearchOperation.Builder
self()
Returns this builder.template
(FilterTemplate template) Sets the filter template.Methods inherited from class org.ldaptive.AbstractOperation.AbstractBuilder
build, factory, onControl, onException, onIntermediate, onReferral, onRequest, onResult, onUnsolicitedNotification, throwIf
-
Constructor Details
-
Builder
protected Builder()Creates a new builder.
-
-
Method Details
-
self
Description copied from class:AbstractOperation.AbstractBuilder
Returns this builder.- Specified by:
self
in classAbstractOperation.AbstractBuilder<SearchOperation.Builder,
SearchOperation> - Returns:
- builder
-
request
Sets the search request.- Parameters:
request
- to set- Returns:
- this builder
-
template
Sets the filter template.- Parameters:
template
- to set- Returns:
- this builder
-
onEntry
Sets the functions to execute when a search result entry is received.- Parameters:
handlers
- to execute on a search result entry- Returns:
- this builder
-
onReference
Sets the functions to execute when a search result reference is received.- Parameters:
handlers
- to execute on a search result reference- Returns:
- this builder
-
onSearchResult
Sets the functions to execute when a search result is complete.- Parameters:
handlers
- to execute on a search result- Returns:
- this builder
-