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
|
getLdapServer, handleMessage, isConfidentialityRequirementSatisfied, rejectWithoutConfidentiality, setLdapServerprotected ReplicationRequestHandler replicationReqHandler
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 Exception
referralAncestor - the farthest referral ancestor of the missing
entryExceptionpublic 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 Exception
referralAncestor - the farthest referral ancestor of the missing
entryExceptionpublic void handleException(LdapSession session, org.apache.directory.api.ldap.model.message.ResultResponseRequest req, Exception e)
handleException in class LdapRequestHandler<org.apache.directory.api.ldap.model.message.SearchRequest>public static final org.apache.directory.api.ldap.model.entry.Entry getFarthestReferralAncestor(LdapSession session, org.apache.directory.api.ldap.model.name.Dn target) throws Exception
Exception - if there are problems during this searchpublic void setReplicationReqHandler(ReplicationRequestHandler replicationReqHandler)
replicationReqHandler - The replication handler providerCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.