Package org.ldaptive.referral
Class AbstractFollowSearchReferralHandler
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
- All Implemented Interfaces:
Function<SearchResponse,,SearchResponse> Freezable
- Direct Known Subclasses:
FollowSearchReferralHandler,FollowSearchResultReferenceHandler
public abstract class AbstractFollowSearchReferralHandler
extends AbstractFollowReferralHandler<SearchRequest,SearchResponse>
Base class with functionality for handling 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
ConstructorsConstructorDescriptionAbstractFollowSearchReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new abstract follow search referral handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SearchResultHandler[]Creates the next search result handler for chasing referrals, which increments the referral depth.protected SearchOperationcreateReferralOperation(ConnectionFactory factory) Creates an operation for this type of referral.protected SearchRequestCreates a new request for this type of referral.Methods inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
apply, followReferral, getReferralConnectionFactory, getReferralDepth, getReferralLimit, getSuccessResultCodes, getThrowOnFailureMethods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, newInstance, setConnection, setHandle, setRequestMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Constructor Details
-
AbstractFollowSearchReferralHandler
public AbstractFollowSearchReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf) Creates a new abstract follow 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
-
createReferralRequest
Description copied from class:AbstractFollowReferralHandlerCreates a new request for this type of referral.- Specified by:
createReferralRequestin classAbstractFollowReferralHandler<SearchRequest,SearchResponse> - Parameters:
url- of the referral- Returns:
- new request
-
createReferralOperation
Description copied from class:AbstractFollowReferralHandlerCreates an operation for this type of referral.- Specified by:
createReferralOperationin classAbstractFollowReferralHandler<SearchRequest,SearchResponse> - Parameters:
factory- to get a connection with- Returns:
- new operation
-
createNextSearchResultHandler
Creates the next search result handler for chasing referrals, which increments the referral depth.- Returns:
- search result handler
-