class LdapProtocolHandler
extends org.apache.mina.handler.demux.DemuxingIoHandler
DemuxingIoHandler for
the LDAP protocol. THe LdapServer creates this multiplexing
IoHandler handler and populates it with subordinate handlers for
the various kinds of LDAP Request messages. This is done in the
setXxxHandler() methods of the LdapServer where Xxxx is Add, Modify, etc.| Modifier and Type | Field and Description |
|---|---|
private LdapServer |
ldapServer
the
LdapServer this handler is associated with |
private static org.slf4j.Logger |
LOG
The logger
|
| Constructor and Description |
|---|
LdapProtocolHandler(LdapServer ldapServer)
Creates a new instance of LdapProtocolHandler.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
cleanUpSession(LdapSession ldapSession)
Explicitly handles
LdapSession and IoSession cleanup tasks. |
void |
exceptionCaught(org.apache.mina.core.session.IoSession session,
java.lang.Throwable cause) |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
java.lang.Object message) |
void |
messageSent(org.apache.mina.core.session.IoSession session,
java.lang.Object message) |
void |
sessionClosed(org.apache.mina.core.session.IoSession session)
This method is called when a session is closed.
|
void |
sessionCreated(org.apache.mina.core.session.IoSession session)
This method is called when a new session is created.
|
addExceptionHandler, addReceivedMessageHandler, addSentMessageHandler, findExceptionHandler, findReceivedMessageHandler, findSentMessageHandler, getExceptionHandlerMap, getMessageHandler, getReceivedMessageHandlerMap, getSentMessageHandlerMap, removeExceptionHandler, removeReceivedMessageHandler, removeSentMessageHandlerprivate static final org.slf4j.Logger LOG
private final LdapServer ldapServer
LdapServer this handler is associated withLdapProtocolHandler(LdapServer ldapServer)
ldapServer - The LDAP server instancepublic void sessionCreated(org.apache.mina.core.session.IoSession session)
throws java.lang.Exception
sessionCreated in interface org.apache.mina.core.service.IoHandlersessionCreated in class org.apache.mina.core.service.IoHandlerAdaptersession - the newly created sessionjava.lang.Exceptionpublic void sessionClosed(org.apache.mina.core.session.IoSession session)
sessionClosed in interface org.apache.mina.core.service.IoHandlersessionClosed in class org.apache.mina.core.service.IoHandlerAdaptersession - the closing sessionprivate void cleanUpSession(LdapSession ldapSession)
LdapSession and IoSession cleanup tasks.ldapSession - the LdapSession to cleanup after being removed from
the LdapSessionManagerpublic void messageSent(org.apache.mina.core.session.IoSession session,
java.lang.Object message)
throws java.lang.Exception
messageSent in interface org.apache.mina.core.service.IoHandlermessageSent in class org.apache.mina.handler.demux.DemuxingIoHandlerjava.lang.Exceptionpublic void messageReceived(org.apache.mina.core.session.IoSession session,
java.lang.Object message)
throws java.lang.Exception
messageReceived in interface org.apache.mina.core.service.IoHandlermessageReceived in class org.apache.mina.handler.demux.DemuxingIoHandlerjava.lang.Exceptionpublic void exceptionCaught(org.apache.mina.core.session.IoSession session,
java.lang.Throwable cause)
exceptionCaught in interface org.apache.mina.core.service.IoHandlerexceptionCaught in class org.apache.mina.handler.demux.DemuxingIoHandler