public static class SearchReferralHandler.SearchReferenceHandler extends Object implements SearchReferenceHandler
SearchReferenceHandler
that delegates to SearchReferralHandler
.Modifier and Type | Field and Description |
---|---|
private ReferralConnectionFactory |
connectionFactory
Referral connection factory.
|
private int |
referralDepth
Referral depth.
|
private int |
referralLimit
Referral limit.
|
Modifier | Constructor and Description |
---|---|
|
SearchReferenceHandler()
Creates a new search reference handler.
|
|
SearchReferenceHandler(int limit)
Creates a new search reference handler.
|
private |
SearchReferenceHandler(int limit,
int depth,
ReferralConnectionFactory factory)
Creates a new search reference handler.
|
|
SearchReferenceHandler(int limit,
ReferralConnectionFactory factory)
Creates a new search reference handler.
|
|
SearchReferenceHandler(ReferralConnectionFactory factory)
Creates a new search reference handler.
|
Modifier and Type | Method and Description |
---|---|
ReferralConnectionFactory |
getReferralConnectionFactory()
Returns the referral connection factory.
|
int |
getReferralDepth()
Returns the referral depth of this handler.
|
int |
getReferralLimit()
Returns the maximum number of referrals to follow.
|
HandlerResult<SearchReference> |
handle(Connection conn,
SearchRequest request,
SearchReference reference)
Handle the supplied result.
|
void |
initializeRequest(SearchRequest request)
Initialize the search request for use with this reference handler.
|
private final int referralLimit
private final int referralDepth
private final ReferralConnectionFactory connectionFactory
public SearchReferenceHandler()
public SearchReferenceHandler(ReferralConnectionFactory factory)
factory
- referral connection factorypublic SearchReferenceHandler(int limit)
limit
- number of referrals to followpublic SearchReferenceHandler(int limit, ReferralConnectionFactory factory)
limit
- number of referrals to followfactory
- referral connection factoryprivate SearchReferenceHandler(int limit, int depth, ReferralConnectionFactory factory)
limit
- number of referrals to followdepth
- number of referrals followedfactory
- referral connection factorypublic int getReferralLimit()
public int getReferralDepth()
public ReferralConnectionFactory getReferralConnectionFactory()
public HandlerResult<SearchReference> handle(Connection conn, SearchRequest request, SearchReference reference) throws LdapException
Handler
handle
in interface Handler<SearchRequest,SearchReference>
handle
in interface SearchReferenceHandler
conn
- connection the operation was executed onrequest
- executed by the operationreference
- produced from the operationLdapException
- if handling failspublic void initializeRequest(SearchRequest request)
SearchReferenceHandler
initializeRequest
in interface SearchReferenceHandler
request
- to initialize for this reference handlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.