public class MutableDelegatingLdapContext extends DelegatingLdapContext
MutablePooledContextSource to wrap a LdapContext,
delegating most methods to the underlying context. This class extends
DelegatingLdapContext, allowing request controls to be set on the
wrapped ldap context. This enables the Spring LDAP pooling to be used for
scenarios such as paged results.CONTROL_FACTORIESADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTEAPPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES| Constructor and Description |
|---|
MutableDelegatingLdapContext(KeyedObjectPool keyedObjectPool,
LdapContext delegateLdapContext,
DirContextType dirContextType)
Create a new mutable delegating ldap context for the specified pool,
context and context type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setRequestControls(Control[] requestControls) |
assertOpen, close, equals, extendedOperation, getConnectControls, getDelegateDirContext, getDelegateLdapContext, getInnermostDelegateLdapContext, getRequestControls, getResponseControls, hashCode, newInstance, reconnect, toStringbind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getDelegateContext, getInnermostDelegateDirContext, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, getTargetContext, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddToEnvironment, bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getInnermostDelegateContext, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindclone, finalize, getClass, notify, notifyAll, wait, wait, waitbind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddToEnvironment, bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindpublic MutableDelegatingLdapContext(KeyedObjectPool keyedObjectPool, LdapContext delegateLdapContext, DirContextType dirContextType)
keyedObjectPool - The pool the delegate context was checked out
from.delegateLdapContext - The ldap context to delegate operations to.dirContextType - The type of context, used as a key for the pool.IllegalArgumentException - if any of the arguments are nullpublic void setRequestControls(Control[] requestControls) throws NamingException
setRequestControls in interface LdapContextsetRequestControls in class DelegatingLdapContextNamingExceptionLdapContext.setRequestControls(Control[])