|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ldap.SessionRegistry
A client session state based on JNDI contexts.
Method Summary | |
void |
addOutstandingRequest(IoSession session,
Request req)
Adds a request to the map of outstanding requests for a session. |
java.util.Hashtable |
getEnvironmentByCopy()
Gets a cloned copy of the environment associated with this registry. |
javax.naming.ldap.LdapContext |
getLdapContext(IoSession session,
javax.naming.ldap.Control[] connCtls,
boolean allowAnonymous)
Gets the InitialContext to the root of the system that was gotten for client. |
javax.naming.ldap.LdapContext |
getLdapContextOnRootDSEAccess(IoSession session,
javax.naming.ldap.Control[] connCtls)
Gets the InitialContext to the root of the system that was gotten for client ONLY to be used for RootDSE Search operations. |
Request |
getOutstandingRequest(IoSession session,
int abandonedId)
Overload that does not require boxing of primitive messageId. |
Request |
getOutstandingRequest(IoSession session,
java.lang.Integer id)
Gets an outstanding request by messageId for a session. |
java.util.Map |
getOutstandingRequests(IoSession session)
Returns a shallow copied map of all outstanding requests for an IoSession. |
IoSession[] |
getSessions()
|
static SessionRegistry |
getSingleton()
Gets the singleton instance for this SessionRegistry. |
void |
remove(IoSession session)
Removes the state mapping a JNDI initial context for the client's key. |
Request |
removeOutstandingRequest(IoSession session,
int messageId)
Overload that does not require boxing of primitive messageId. |
Request |
removeOutstandingRequest(IoSession session,
java.lang.Integer id)
Removes an outstanding request from the session's outstanding request map. |
void |
setLdapContext(IoSession session,
javax.naming.ldap.LdapContext ictx)
Sets the initial context associated with a newly authenticated client. |
void |
terminateSession(IoSession session)
Terminates the session by publishing a disconnect event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SessionRegistry getSingleton()
public java.util.Hashtable getEnvironmentByCopy()
public void addOutstandingRequest(IoSession session, Request req)
session
- the session the request was issued onreq
- the request to addpublic Request removeOutstandingRequest(IoSession session, int messageId)
session
- the session associated with the requestmessageId
- the id of the request
public Request removeOutstandingRequest(IoSession session, java.lang.Integer id)
session
- the session the request is removed fromid
- the messageId of the request to remove
public java.util.Map getOutstandingRequests(IoSession session)
session
- the session to get outstanding requests for
public Request getOutstandingRequest(IoSession session, int abandonedId)
session
- the session associated with the request
public Request getOutstandingRequest(IoSession session, java.lang.Integer id)
session
- the LDAP sessionid
- the message id of the request
public IoSession[] getSessions()
public javax.naming.ldap.LdapContext getLdapContext(IoSession session, javax.naming.ldap.Control[] connCtls, boolean allowAnonymous) throws javax.naming.NamingException
session
- the client's keyconnCtls
- connection controls if any to use if creating anon contextallowAnonymous
- true if anonymous requests will create anonymous
InitialContext if one is not present for the operation
javax.naming.NamingException
public javax.naming.ldap.LdapContext getLdapContextOnRootDSEAccess(IoSession session, javax.naming.ldap.Control[] connCtls) throws javax.naming.NamingException
session
- the client's keyconnCtls
- connection controls if any to use if creating anon context
javax.naming.NamingException
public void setLdapContext(IoSession session, javax.naming.ldap.LdapContext ictx)
session
- the client sessionictx
- the initial context gottenpublic void remove(IoSession session)
session
- the client's keypublic void terminateSession(IoSession session)
session
- the client key of the client to disconnect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |