Package org.ldaptive.referral
Class FollowSearchReferralHandler
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.FollowSearchReferralHandler
- All Implemented Interfaces:
Function<SearchResponse,,SearchResponse> Freezable,ReferralResultHandler<SearchResponse>,SearchResultHandler
public class FollowSearchReferralHandler
extends AbstractFollowSearchReferralHandler
implements SearchResultHandler, ReferralResultHandler<SearchResponse>
Provides handling of an ldap referral 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 referral handler.FollowSearchReferralHandler(int limit) Creates a new search referral handler.FollowSearchReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new search referral handler.FollowSearchReferralHandler(int limit, ReferralConnectionFactory factory) Creates a new search referral handler.FollowSearchReferralHandler(int limit, ReferralConnectionFactory factory, boolean tf) Creates a new search referral handler.Creates a new search referral handler.FollowSearchReferralHandler(ReferralConnectionFactory factory, boolean tf) Creates a new search referral handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
apply, 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
-
FollowSearchReferralHandler
public FollowSearchReferralHandler()Creates a new search referral handler. -
FollowSearchReferralHandler
Creates a new search referral handler.- Parameters:
factory- referral connection factory
-
FollowSearchReferralHandler
Creates a new search referral handler.- Parameters:
factory- referral connection factorytf- whether to throw on failure to chase referrals
-
FollowSearchReferralHandler
public FollowSearchReferralHandler(int limit) Creates a new search referral handler.- Parameters:
limit- number of referrals to follow
-
FollowSearchReferralHandler
Creates a new search referral handler.- Parameters:
limit- number of referrals to followfactory- referral connection factory
-
FollowSearchReferralHandler
Creates a new search referral handler.- Parameters:
limit- number of referrals to followfactory- referral connection factorytf- whether to throw on failure to chase referrals
-
FollowSearchReferralHandler
FollowSearchReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new search referral handler.- Parameters:
limit- number of referrals to followdepth- number of referrals followedfactory- referral connection factorytf- whether to throw on failure to chase referrals
-
-
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
-
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
-