public abstract class LdapResponseHandler<T extends org.apache.directory.api.ldap.model.message.Response>
extends java.lang.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
|
protected static org.slf4j.Logger |
LOG
The logger for this class
|
| Constructor and Description |
|---|
LdapResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
LdapServer |
getLdapServer() |
abstract void |
handle(LdapSession session,
T message)
Handle a Ldap message associated with a session
|
void |
handleMessage(org.apache.mina.core.session.IoSession session,
T message) |
void |
setLdapServer(LdapServer ldapServer)
Associates a Ldap server instance to the message handler
|
protected static final org.slf4j.Logger LOG
protected LdapServer ldapServer
public final LdapServer getLdapServer()
public final void setLdapServer(LdapServer ldapServer)
ldapServer - the associated ldap server instancepublic final void handleMessage(org.apache.mina.core.session.IoSession session,
T message)
throws java.lang.Exception
handleMessage in interface org.apache.mina.handler.demux.MessageHandler<T extends org.apache.directory.api.ldap.model.message.Response>java.lang.Exceptionpublic abstract void handle(LdapSession session, T message) throws java.lang.Exception
session - The associated sessionmessage - The message we have to handlejava.lang.Exception - If there is an error during the processing of this message