Package org.ldaptive.referral
Class FollowAddReferralHandler
- 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<AddRequest,AddResponse>
-
- org.ldaptive.referral.FollowAddReferralHandler
-
- All Implemented Interfaces:
Function<AddResponse,AddResponse>,Freezable,ReferralResultHandler<AddResponse>
public class FollowAddReferralHandler extends AbstractFollowReferralHandler<AddRequest,AddResponse> implements ReferralResultHandler<AddResponse>
Provides handling of an ldap referral for add operations.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
DEFAULT_REFERRAL_LIMIT, logger, referralDepth, referralLimit
-
-
Constructor Summary
Constructors Modifier Constructor Description FollowAddReferralHandler()Creates a new add referral handler.FollowAddReferralHandler(int limit)Creates a new add referral handler.privateFollowAddReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf)Creates a new add referral handler.FollowAddReferralHandler(int limit, ReferralConnectionFactory factory)Creates a new add referral handler.FollowAddReferralHandler(int limit, ReferralConnectionFactory factory, boolean tf)Creates a new add referral handler.FollowAddReferralHandler(ReferralConnectionFactory factory)Creates a new add referral handler.FollowAddReferralHandler(ReferralConnectionFactory factory, boolean tf)Creates a new add referral handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AddOperationcreateReferralOperation(ConnectionFactory factory)Creates an operation for this type of referral.protected AddRequestcreateReferralRequest(LdapURL url)Creates a new request for this type of referral.FollowAddReferralHandlernewInstance()Create a new instance of this message functional.-
Methods inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
apply, followReferral, getReferralConnectionFactory, getReferralDepth, getReferralLimit, getSuccessResultCodes, getThrowOnFailure
-
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequest
-
Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
-
-
-
Constructor Detail
-
FollowAddReferralHandler
public FollowAddReferralHandler()
Creates a new add referral handler.
-
FollowAddReferralHandler
public FollowAddReferralHandler(ReferralConnectionFactory factory)
Creates a new add referral handler.- Parameters:
factory- referral connection factory
-
FollowAddReferralHandler
public FollowAddReferralHandler(ReferralConnectionFactory factory, boolean tf)
Creates a new add referral handler.- Parameters:
factory- referral connection factorytf- whether to throw on failure to chase referrals
-
FollowAddReferralHandler
public FollowAddReferralHandler(int limit)
Creates a new add referral handler.- Parameters:
limit- number of referrals to follow
-
FollowAddReferralHandler
public FollowAddReferralHandler(int limit, ReferralConnectionFactory factory)Creates a new add referral handler.- Parameters:
limit- number of referrals to followfactory- referral connection factory
-
FollowAddReferralHandler
public FollowAddReferralHandler(int limit, ReferralConnectionFactory factory, boolean tf)Creates a new add referral handler.- Parameters:
limit- number of referrals to followfactory- referral connection factorytf- whether to throw on failure to chase referrals
-
FollowAddReferralHandler
private FollowAddReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf)Creates a new add 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 Detail
-
createReferralRequest
protected AddRequest createReferralRequest(LdapURL url)
Description copied from class:AbstractFollowReferralHandlerCreates a new request for this type of referral.- Specified by:
createReferralRequestin classAbstractFollowReferralHandler<AddRequest,AddResponse>- Parameters:
url- of the referral- Returns:
- new request
-
createReferralOperation
protected AddOperation createReferralOperation(ConnectionFactory factory)
Description copied from class:AbstractFollowReferralHandlerCreates an operation for this type of referral.- Specified by:
createReferralOperationin classAbstractFollowReferralHandler<AddRequest,AddResponse>- Parameters:
factory- to get a connection with- Returns:
- new operation
-
newInstance
public FollowAddReferralHandler newInstance()
Description copied from class:MessageFunctionalCreate a new instance of this message functional.- Specified by:
newInstancein classMessageFunctional<AddRequest,AddResponse>- Returns:
- new instance of this message functional
-
-