public class SearchReferralHandler extends AbstractReferralHandler<SearchRequest,SearchResult>
SearchReferenceHandler
so that both referrals and search references will be followed.Modifier and Type | Class and Description |
---|---|
static class |
SearchReferralHandler.SearchReferenceHandler
Implementation of
SearchReferenceHandler that delegates to SearchReferralHandler . |
DEFAULT_CONNECTION_FACTORY, DEFAULT_REFERRAL_LIMIT, logger
Modifier | Constructor and Description |
---|---|
|
SearchReferralHandler()
Creates a new search referral handler.
|
|
SearchReferralHandler(int limit)
Creates a new search referral handler.
|
private |
SearchReferralHandler(int limit,
int depth,
ReferralConnectionFactory factory)
Creates a new search referral handler.
|
|
SearchReferralHandler(int limit,
ReferralConnectionFactory factory)
Creates a new search referral handler.
|
|
SearchReferralHandler(ReferralConnectionFactory factory)
Creates a new search referral handler.
|
Modifier and Type | Method and Description |
---|---|
protected Operation<SearchRequest,SearchResult> |
createReferralOperation(Connection conn)
Creates an operation for this type of referral.
|
protected SearchRequest |
createReferralRequest(SearchRequest request,
LdapURL url)
Creates a new request for this type of referral.
|
void |
initializeRequest(SearchRequest request)
Initialize the request for use with this referral handler.
|
followReferral, getReferralConnectionFactory, getReferralDepth, getReferralLimit, handle, handle
public SearchReferralHandler()
public SearchReferralHandler(ReferralConnectionFactory factory)
factory
- referral connection factorypublic SearchReferralHandler(int limit)
limit
- number of referrals to followpublic SearchReferralHandler(int limit, ReferralConnectionFactory factory)
limit
- number of referrals to followfactory
- referral connection factoryprivate SearchReferralHandler(int limit, int depth, ReferralConnectionFactory factory)
limit
- number of referrals to followdepth
- number of referrals followedfactory
- referral connection factoryprotected SearchRequest createReferralRequest(SearchRequest request, LdapURL url)
AbstractReferralHandler
createReferralRequest
in class AbstractReferralHandler<SearchRequest,SearchResult>
request
- of the original operationurl
- of the referralprotected Operation<SearchRequest,SearchResult> createReferralOperation(Connection conn)
AbstractReferralHandler
createReferralOperation
in class AbstractReferralHandler<SearchRequest,SearchResult>
conn
- to execute the operation onpublic void initializeRequest(SearchRequest request)
ReferralHandler
initializeRequest
in interface ReferralHandler<SearchRequest,SearchResult>
initializeRequest
in class AbstractReferralHandler<SearchRequest,SearchResult>
request
- to initialize for this referral handlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.