public class SearchRequestHandler extends LdapRequestHandler<org.apache.directory.api.ldap.model.message.SearchRequest>
Modifier and Type | Field and Description |
---|---|
protected ReplicationRequestHandler |
replicationReqHandler
The replication handler
|
ldapServer
Constructor and Description |
---|
SearchRequestHandler() |
Modifier and Type | Method and Description |
---|---|
static org.apache.directory.api.ldap.model.entry.Entry |
getFarthestReferralAncestor(LdapSession session,
org.apache.directory.api.ldap.model.name.Dn target)
Searches up the ancestry of a Dn searching for the farthest referral
ancestor.
|
org.apache.directory.api.ldap.model.message.Referral |
getReferralOnAncestor(LdapSession session,
org.apache.directory.api.ldap.model.name.Dn reqTargetDn,
org.apache.directory.api.ldap.model.message.SearchRequest req,
org.apache.directory.api.ldap.model.entry.Entry referralAncestor)
Handles processing with referrals without ManageDsaIT decorator and with
an ancestor that is a referral.
|
org.apache.directory.api.ldap.model.message.Referral |
getReferralOnAncestorForSearch(LdapSession session,
org.apache.directory.api.ldap.model.message.SearchRequest req,
org.apache.directory.api.ldap.model.entry.Entry referralAncestor)
Handles processing with referrals without ManageDsaIT decorator and with
an ancestor that is a referral.
|
void |
handle(LdapSession session,
org.apache.directory.api.ldap.model.message.SearchRequest req)
Handle a Ldap message associated with a session
|
void |
handleException(LdapSession session,
org.apache.directory.api.ldap.model.message.ResultResponseRequest req,
Exception e)
Handles processing with referrals without ManageDsaIT decorator.
|
void |
setReplicationReqHandler(ReplicationRequestHandler replicationReqHandler)
Install the replication handler when it's allowed by this server
|
getLdapApiService, getLdapServer, handleException, handleMessage, isConfidentialityRequirementSatisfied, rejectWithoutConfidentiality, setLdapServer
protected ReplicationRequestHandler replicationReqHandler
public SearchRequestHandler()
public final void handle(LdapSession session, org.apache.directory.api.ldap.model.message.SearchRequest req) throws Exception
handle
in class LdapRequestHandler<org.apache.directory.api.ldap.model.message.SearchRequest>
session
- The associated sessionreq
- The message we have to handleException
- If there is an error during the processing of this messagepublic org.apache.directory.api.ldap.model.message.Referral getReferralOnAncestorForSearch(LdapSession session, org.apache.directory.api.ldap.model.message.SearchRequest req, org.apache.directory.api.ldap.model.entry.Entry referralAncestor) throws org.apache.directory.api.ldap.model.exception.LdapException
session
- The LdapSession in usereq
- The SearchRequestreferralAncestor
- the farthest referral ancestor of the missing
entryorg.apache.directory.api.ldap.model.exception.LdapException
- If we weren't able to retrieve the referralpublic org.apache.directory.api.ldap.model.message.Referral getReferralOnAncestor(LdapSession session, org.apache.directory.api.ldap.model.name.Dn reqTargetDn, org.apache.directory.api.ldap.model.message.SearchRequest req, org.apache.directory.api.ldap.model.entry.Entry referralAncestor) throws org.apache.directory.api.ldap.model.exception.LdapException
session
- The LdapSession in usereqTargetDn
- the request target Dnreq
- The SearchRequestreferralAncestor
- the farthest referral ancestor of the missing
entryorg.apache.directory.api.ldap.model.exception.LdapException
- If we weren't able to retrieve the ancestorpublic void handleException(LdapSession session, org.apache.directory.api.ldap.model.message.ResultResponseRequest req, Exception e)
public static final org.apache.directory.api.ldap.model.entry.Entry getFarthestReferralAncestor(LdapSession session, org.apache.directory.api.ldap.model.name.Dn target)
session
- The LdapSession in usetarget
- the base Dnpublic void setReplicationReqHandler(ReplicationRequestHandler replicationReqHandler)
replicationReqHandler
- The replication handler providerCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.