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