public abstract class LdapRequestHandler<T extends org.apache.directory.shared.ldap.message.internal.InternalRequest> extends Object implements org.apache.mina.handler.demux.MessageHandler<T>
Modifier and Type | Field and Description |
---|---|
protected LdapServer |
ldapServer
The reference on the Ldap server instance
|
Constructor and Description |
---|
LdapRequestHandler() |
Modifier and Type | Method and Description |
---|---|
LdapServer |
getLdapServer() |
abstract void |
handle(LdapSession session,
T message)
Handle a Ldap message associated with a session
|
void |
handleException(LdapSession session,
org.apache.directory.shared.ldap.message.internal.InternalResultResponseRequest req,
Exception e)
Handles processing with referrals without ManageDsaIT control.
|
void |
handleMessage(org.apache.mina.core.session.IoSession session,
T message) |
boolean |
isConfidentialityRequirementSatisfied(org.apache.mina.core.session.IoSession session)
Checks to see if confidentiality requirements are met.
|
void |
rejectWithoutConfidentiality(org.apache.mina.core.session.IoSession session,
org.apache.directory.shared.ldap.message.internal.InternalResultResponse resp) |
void |
setLdapServer(LdapServer ldapServer)
Associates a Ldap server instance to the message handler
|
protected LdapServer ldapServer
public final LdapServer getLdapServer()
public final void setLdapServer(LdapServer ldapServer)
ldapServer
- the associated ldap server instancepublic final boolean isConfidentialityRequirementSatisfied(org.apache.mina.core.session.IoSession session)
ResultCodeEnum.CONFIDENTIALITY_REQUIRED
error responses back
to clients.session
- the MINA IoSession to check for TLS securitypublic void rejectWithoutConfidentiality(org.apache.mina.core.session.IoSession session, org.apache.directory.shared.ldap.message.internal.InternalResultResponse resp)
public final void handleMessage(org.apache.mina.core.session.IoSession session, T message) throws Exception
public abstract void handle(LdapSession session, T message) throws Exception
session
- The associated sessionmessage
- The message we have to handleException
- If there is an error during the processing of this messagepublic void handleException(LdapSession session, org.apache.directory.shared.ldap.message.internal.InternalResultResponseRequest req, Exception e)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.