|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ldap.handlers.LdapRequestHandler<T>
public abstract class LdapRequestHandler<T extends org.apache.directory.api.ldap.model.message.Request>
A base class for all LDAP request handlers.
| Field Summary | |
|---|---|
protected LdapServer |
ldapServer
The reference on the Ldap server instance |
protected static org.slf4j.Logger |
LOG
The logger for this class |
| Fields inherited from interface org.apache.mina.handler.demux.MessageHandler |
|---|
NOOP |
| Constructor Summary | |
|---|---|
LdapRequestHandler()
|
|
| Method Summary | |
|---|---|
LdapServer |
getLdapServer()
|
abstract void |
handle(LdapSession session,
T message)
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 |
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.api.ldap.model.message.ResultResponse resp)
|
void |
setLdapServer(LdapServer ldapServer)
Associates a Ldap server instance to the message handler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOG
protected LdapServer ldapServer
| Constructor Detail |
|---|
public LdapRequestHandler()
| Method Detail |
|---|
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 security
public void rejectWithoutConfidentiality(org.apache.mina.core.session.IoSession session,
org.apache.directory.api.ldap.model.message.ResultResponse resp)
public final void handleMessage(org.apache.mina.core.session.IoSession session,
T message)
throws Exception
handleMessage in interface org.apache.mina.handler.demux.MessageHandler<T extends org.apache.directory.api.ldap.model.message.Request>Exception
public abstract void handle(LdapSession session,
T message)
throws Exception
session - The associated sessionmessage - The message we have to handle
Exception - If there is an error during the processing of this message
public void handleException(LdapSession session,
org.apache.directory.api.ldap.model.message.ResultResponseRequest<?> req,
Exception e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||