Package org.ldaptive.referral
Class FollowModifyDnReferralHandler
- 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<ModifyDnRequest,ModifyDnResponse>
-
- org.ldaptive.referral.FollowModifyDnReferralHandler
-
- All Implemented Interfaces:
Function<ModifyDnResponse,ModifyDnResponse>
,Freezable
,ReferralResultHandler<ModifyDnResponse>
public class FollowModifyDnReferralHandler extends AbstractFollowReferralHandler<ModifyDnRequest,ModifyDnResponse> implements ReferralResultHandler<ModifyDnResponse>
Provides handling of an ldap referral for modify dn operations.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.referral.AbstractFollowReferralHandler
DEFAULT_REFERRAL_LIMIT, logger, referralDepth, referralLimit
-
-
Constructor Summary
Constructors Modifier Constructor Description FollowModifyDnReferralHandler()
Creates a new modify DN referral handler.FollowModifyDnReferralHandler(int limit)
Creates a new modify DN referral handler.private
FollowModifyDnReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN referral handler.FollowModifyDnReferralHandler(int limit, ReferralConnectionFactory factory)
Creates a new modify DN referral handler.FollowModifyDnReferralHandler(int limit, ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN referral handler.FollowModifyDnReferralHandler(ReferralConnectionFactory factory)
Creates a new modify DN referral handler.FollowModifyDnReferralHandler(ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN referral handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModifyDnOperation
createReferralOperation(ConnectionFactory factory)
Creates an operation for this type of referral.protected ModifyDnRequest
createReferralRequest(LdapURL url)
Creates a new request for this type of referral.FollowModifyDnReferralHandler
newInstance()
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
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler()
Creates a new modify DN referral handler.
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler(ReferralConnectionFactory factory)
Creates a new modify DN referral handler.- Parameters:
factory
- referral connection factory
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler(ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN referral handler.- Parameters:
factory
- referral connection factorytf
- whether to throw on failure to chase referrals
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler(int limit)
Creates a new modify DN referral handler.- Parameters:
limit
- number of referrals to follow
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler(int limit, ReferralConnectionFactory factory)
Creates a new modify DN referral handler.- Parameters:
limit
- number of referrals to followfactory
- referral connection factory
-
FollowModifyDnReferralHandler
public FollowModifyDnReferralHandler(int limit, ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN referral handler.- Parameters:
limit
- number of referrals to followfactory
- referral connection factorytf
- whether to throw on failure to chase referrals
-
FollowModifyDnReferralHandler
private FollowModifyDnReferralHandler(int limit, int depth, ReferralConnectionFactory factory, boolean tf)
Creates a new modify DN 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 ModifyDnRequest createReferralRequest(LdapURL url)
Description copied from class:AbstractFollowReferralHandler
Creates a new request for this type of referral.- Specified by:
createReferralRequest
in classAbstractFollowReferralHandler<ModifyDnRequest,ModifyDnResponse>
- Parameters:
url
- of the referral- Returns:
- new request
-
createReferralOperation
protected ModifyDnOperation createReferralOperation(ConnectionFactory factory)
Description copied from class:AbstractFollowReferralHandler
Creates an operation for this type of referral.- Specified by:
createReferralOperation
in classAbstractFollowReferralHandler<ModifyDnRequest,ModifyDnResponse>
- Parameters:
factory
- to get a connection with- Returns:
- new operation
-
newInstance
public FollowModifyDnReferralHandler newInstance()
Description copied from class:MessageFunctional
Create a new instance of this message functional.- Specified by:
newInstance
in classMessageFunctional<ModifyDnRequest,ModifyDnResponse>
- Returns:
- new instance of this message functional
-
-