Package org.ldaptive.referral
Class FollowSearchReferralHandler
java.lang.Object
org.ldaptive.transport.MessageFunctional<SearchRequest,SearchResponse>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,SearchResponse,SearchResponse>
org.ldaptive.referral.AbstractFollowReferralHandler<SearchRequest,SearchResponse>
org.ldaptive.referral.FollowSearchReferralHandler
- All Implemented Interfaces:
Function<SearchResponse,
,SearchResponse> SearchResultHandler
public class FollowSearchReferralHandler
extends AbstractFollowReferralHandler<SearchRequest,SearchResponse>
implements SearchResultHandler
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
ConstructorsModifierConstructorDescriptionCreates a new search referral handler.FollowSearchReferralHandler
(int limit) Creates a new search referral handler.private
FollowSearchReferralHandler
(int limit, int depth, ReferralConnectionFactory factory) Creates a new search referral handler.FollowSearchReferralHandler
(int limit, ReferralConnectionFactory factory) Creates a new search referral handler.Creates a new search referral handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected SearchOperation
createReferralOperation
(ConnectionFactory factory) Creates an operation for this type of referral.protected SearchRequest
Creates a new request for this type of referral.Methods inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
apply, followReferral, getReferralConnectionFactory, getReferralDepth, getReferralLimit
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequest
-
Constructor Details
-
FollowSearchReferralHandler
public FollowSearchReferralHandler()Creates a new search referral handler. -
FollowSearchReferralHandler
Creates a new search referral handler.- Parameters:
factory
- referral connection factory
-
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 followdepth
- number of referrals followedfactory
- referral connection factory
-
-
Method Details
-
createReferralRequest
Description copied from class:AbstractFollowReferralHandler
Creates a new request for this type of referral.- Specified by:
createReferralRequest
in classAbstractFollowReferralHandler<SearchRequest,
SearchResponse> - Parameters:
url
- of the referral- Returns:
- new request
-
createReferralOperation
Description copied from class:AbstractFollowReferralHandler
Creates an operation for this type of referral.- Specified by:
createReferralOperation
in classAbstractFollowReferralHandler<SearchRequest,
SearchResponse> - Parameters:
factory
- to get a connection with- Returns:
- new operation
-