Package org.ldaptive
Class AbstractSearchOperationFactory
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractOperationFactory<SearchRequest,SearchResponse>
org.ldaptive.AbstractSearchOperationFactory
- All Implemented Interfaces:
ConnectionFactoryManager,Freezable
- Direct Known Subclasses:
AbstractSearchEntryResolver,PagedResultsClient,SearchDnResolver,SearchRoleResolver,VirtualListViewClient
public abstract class AbstractSearchOperationFactory
extends AbstractOperationFactory<SearchRequest,SearchResponse>
Base class for classes that need to configure a search operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LdapEntryHandler[]Functions to handle entries.private SearchReferenceHandler[]Functions to handle response references.private SearchResultHandler[]Functions to handle search response results.Fields inherited from class org.ldaptive.AbstractOperationFactory
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchOperationCreates a new search operation configured with the properties on this factory.protected SearchOperationCreates a new search operation configured with the properties on this factory.voidfreeze()Freezes this object, making it immutable.Returns the search entry handlers.Returns the search reference handlers.Returns the search result handlers.voidsetEntryHandlers(LdapEntryHandler... handlers) Sets the search entry handlers.voidsetReferenceHandlers(SearchReferenceHandler... handlers) Sets the search reference handlers.voidsetSearchResultHandlers(SearchResultHandler... handlers) Sets the search result handlers.toString()Methods inherited from class org.ldaptive.AbstractOperationFactory
getConnectionFactory, getControlHandlers, getExceptionHandler, getIntermediateResponseHandlers, getReferralHandlers, getRequestHandlers, getResultHandlers, getThrowCondition, getUnsolicitedNotificationHandlers, initializeOperation, setConnectionFactory, setControlHandlers, setExceptionHandler, setIntermediateResponseHandlers, setReferralHandlers, setRequestHandlers, setResultHandlers, setThrowCondition, setUnsolicitedNotificationHandlersMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
Field Details
-
entryHandlers
Functions to handle entries. -
referenceHandlers
Functions to handle response references. -
searchResultHandlers
Functions to handle search response results.
-
-
Constructor Details
-
AbstractSearchOperationFactory
public AbstractSearchOperationFactory()
-
-
Method Details
-
freeze
public void freeze()Description copied from interface:FreezableFreezes this object, making it immutable.- Specified by:
freezein interfaceFreezable- Overrides:
freezein classAbstractOperationFactory<SearchRequest,SearchResponse>
-
getEntryHandlers
Returns the search entry handlers.- Returns:
- search entry handlers
-
setEntryHandlers
Sets the search entry handlers.- Parameters:
handlers- search entry handlers
-
getReferenceHandlers
Returns the search reference handlers.- Returns:
- search reference handlers
-
setReferenceHandlers
Sets the search reference handlers.- Parameters:
handlers- search reference handlers
-
getSearchResultHandlers
Returns the search result handlers.- Returns:
- search result handlers
-
setSearchResultHandlers
Sets the search result handlers.- Parameters:
handlers- search result handlers
-
createSearchOperation
Creates a new search operation configured with the properties on this factory.- Returns:
- search operation
-
createSearchOperation
Creates a new search operation configured with the properties on this factory.- Parameters:
cf- connection factory to set on the search operation- Returns:
- search operation
-
toString
- Overrides:
toStringin classAbstractOperationFactory<SearchRequest,SearchResponse>
-