Package org.ldaptive.referral
Class FollowSearchResultReferenceHandler
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.transport.MessageFunctional<Q,S>
org.ldaptive.transport.MessageFunctional.Function<Q,S,S,S>
org.ldaptive.referral.AbstractFollowReferralHandler<SearchRequest,SearchResponse>
org.ldaptive.referral.AbstractFollowSearchReferralHandler
org.ldaptive.referral.FollowSearchResultReferenceHandler
- All Implemented Interfaces:
Function<SearchResponse,,SearchResponse> Freezable,SearchResultHandler
public class FollowSearchResultReferenceHandler
extends AbstractFollowSearchReferralHandler
implements SearchResultHandler
Provides handling of an ldap continuation reference for search operations.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
DEFAULT_REFERRAL_LIMIT, logger, referralDepth, referralLimit -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new search result reference handler.FollowSearchResultReferenceHandler(int limit) Creates a new search result reference handler.FollowSearchResultReferenceHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new search result reference handler.FollowSearchResultReferenceHandler(int limit, ReferralConnectionFactory factory) Creates a new search result reference handler.FollowSearchResultReferenceHandler(int limit, ReferralConnectionFactory factory, boolean tf) Creates a new search result reference handler.Creates a new search result reference handler.FollowSearchResultReferenceHandler(ReferralConnectionFactory factory, boolean tf) Creates a new search result reference handler. -
Method Summary
Modifier and TypeMethodDescriptionapply(SearchResponse result) protected SearchResultHandler[]Creates the next search result handler for chasing referrals, which increments the referral depth.Create a new instance of this message functional.Methods inherited from class org.ldaptive.referral.AbstractFollowSearchReferralHandler
createReferralOperation, createReferralRequestMethods inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
followReferral, getReferralConnectionFactory, getReferralDepth, getReferralLimit, getSuccessResultCodes, getThrowOnFailureMethods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequestMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Constructor Details
-
FollowSearchResultReferenceHandler
public FollowSearchResultReferenceHandler()Creates a new search result reference handler. -
FollowSearchResultReferenceHandler
Creates a new search result reference handler.- Parameters:
factory- referral connection factory
-
FollowSearchResultReferenceHandler
Creates a new search result reference handler.- Parameters:
factory- referral connection factorytf- whether to throw on failure to chase references
-
FollowSearchResultReferenceHandler
public FollowSearchResultReferenceHandler(int limit) Creates a new search result reference handler.- Parameters:
limit- number of references to follow
-
FollowSearchResultReferenceHandler
Creates a new search result reference handler.- Parameters:
limit- number of references to followfactory- referral connection factory
-
FollowSearchResultReferenceHandler
Creates a new search result reference handler.- Parameters:
limit- number of references to followfactory- referral connection factorytf- whether to throw on failure to chase references
-
FollowSearchResultReferenceHandler
FollowSearchResultReferenceHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new search result reference handler.- Parameters:
limit- number of references to followdepth- number of references followedfactory- referral connection factorytf- whether to throw on failure to chase references
-
-
Method Details
-
createNextSearchResultHandler
Description copied from class:AbstractFollowSearchReferralHandlerCreates the next search result handler for chasing referrals, which increments the referral depth.- Specified by:
createNextSearchResultHandlerin classAbstractFollowSearchReferralHandler- Returns:
- search result handler
-
apply
- Specified by:
applyin interfaceFunction<SearchResponse,SearchResponse> - Overrides:
applyin classAbstractFollowReferralHandler<SearchRequest,SearchResponse>
-
newInstance
Description copied from class:MessageFunctionalCreate a new instance of this message functional.- Specified by:
newInstancein classMessageFunctional<SearchRequest,SearchResponse> - Returns:
- new instance of this message functional
-