|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ldap.LdapSessionManager
public class LdapSessionManager
Manages sessions in a thread safe manner for the LdapService. This class is
used primarily by the LdapProtocolHandler
to manage sessions and is
created by the LdapService which makes it available to the handler. It's job
is simple and this class was mainly created to be able to expose the session
manager safely to things like the LdapProtocolHandler.
Constructor Summary | |
---|---|
LdapSessionManager()
|
Method Summary | |
---|---|
void |
addLdapSession(LdapSession ldapSession)
Adds a new LdapSession to the LdapService. |
LdapSession |
getLdapSession(org.apache.mina.common.IoSession session)
Gets the LdapSession associated with the MINA session. |
LdapSession[] |
getSessions()
Gets the active sessions managed by the LdapService. |
LdapSession |
removeLdapSession(org.apache.mina.common.IoSession session)
Removes an LdapSession managed by the LdapService . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapSessionManager()
Method Detail |
---|
public LdapSession[] getSessions()
public void addLdapSession(LdapSession ldapSession)
ldapSession
- the newly created LdapSession
public LdapSession removeLdapSession(org.apache.mina.common.IoSession session)
LdapService
. This method
has no side effects: meaning it does not perform cleanup tasks after
removing the session. This task is handled by the callers.
session
- the MINA session of the LdapSession to be removed
public LdapSession getLdapSession(org.apache.mina.common.IoSession session)
session
- the MINA session of the LdapSession to retrieve
IoSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |