|
||||||||||
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.shared.ldap.message.Request>
A base class for all LDAP request handlers.
Field Summary | |
---|---|
protected LdapService |
ldapService
The reference on the Ldap server instance |
Fields inherited from interface org.apache.mina.handler.demux.MessageHandler |
---|
NOOP |
Constructor Summary | |
---|---|
LdapRequestHandler()
|
Method Summary | |
---|---|
LdapService |
getLdapServer()
|
abstract void |
handle(LdapSession session,
T message)
Handle a Ldap message associated with a session |
boolean |
isConfidentialityRequirementSatisfied(org.apache.mina.common.IoSession session)
Checks to see if confidentiality requirements are met. |
void |
messageReceived(org.apache.mina.common.IoSession session,
T message)
Handle a LDAP message received during a session. |
void |
rejectWithoutConfidentiality(org.apache.mina.common.IoSession session,
org.apache.directory.shared.ldap.message.ResultResponse resp)
|
void |
setLdapServer(LdapService ldapService)
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 LdapService ldapService
Constructor Detail |
---|
public LdapRequestHandler()
Method Detail |
---|
public final LdapService getLdapServer()
public final void setLdapServer(LdapService ldapService)
ldapService
- the associated ldap server instancepublic final boolean isConfidentialityRequirementSatisfied(org.apache.mina.common.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.common.IoSession session, org.apache.directory.shared.ldap.message.ResultResponse resp)
public final void messageReceived(org.apache.mina.common.IoSession session, T message) throws java.lang.Exception
messageReceived
in interface org.apache.mina.handler.demux.MessageHandler<T extends org.apache.directory.shared.ldap.message.Request>
session
- the user session created when the user first connected
to the servermessage
- the LDAP message received. Can be any of the LDAP Request
java.lang.Exception
- the thrown exception if something went wrong during
the message processingpublic abstract void handle(LdapSession session, T message) throws java.lang.Exception
session
- The associated sessionmessage
- The message we have to handle
java.lang.Exception
- If there is an error during the processing of this message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |