Class LdapContextImpl

java.lang.Object
com.netscape.jndi.ldap.LdapContextImpl
All Implemented Interfaces:
Context, DirContext, EventContext, EventDirContext, LdapContext

public class LdapContextImpl extends Object implements EventDirContext, LdapContext
Implementation for the DirContext. The context also supports controls through the implementation of LdapContext interface and events through the implementaion of EventDirContext. Semantically, the LdapContextImpl corresponds to a directory entry. Thus a context is associated with a DN (m_ctxDN). Multiple contexts share the same LDAPConnection which is wrapped into a LdapService object (m_ldapSvc). Each context also maintains a set of environment properties (m_ctxEnv). A context environment is shared among mutiple contexts using a variation of copy-on-write algorithm (see common.ShareableEnv class). Each context also maintains a set of LDAPSearchConstraints, as search constrainsts like e.g. server controls, or max number of returned search search results, are context specific. The LdapService reads the LDAPSearchConstraints from a context that makes a service request.