APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.jndi.ldap

pack-priv final Class LdapReferralContext

extends Object
implements DirContext, LdapContext
Class Inheritance
All Implemented Interfaces
javax.naming.ldap.LdapContext, javax.naming.directory.DirContext, javax.naming.Context
Imports
javax.naming.*, javax.naming.directory.*, javax.naming.ldap.*, java.util.Hashtable, .StringTokenizer, com.sun.jndi.toolkit.dir.SearchFilter, com.sun.naming.internal.NamingManagerHelper, .ObjectFactoriesFilter

A context for handling referrals.
Author
Vincent Ryan

Field Summary

Modifier and TypeField and Description
private int
private NamingException
private DirContext
private LdapReferralException
private boolean
private String
private String
private Name
private String

Constructor Summary

AccessConstructor and Description
pack-priv
LdapReferralContext(LdapReferralException ex, Hashtable<?, ?> env, Control[] connCtls, Control[] reqCtls, String nextName, boolean skipThisReferral, int handleReferrals)

Method Summary

Modifier and TypeMethod and Description
public Object
addToEnvironment(String propName, Object propVal)

Implements javax.naming.Context.addToEnvironment.

Adds a new environment property to the environment of this context.

public void
bind(String name, Object obj)

Implements javax.naming.Context.bind.

Binds a name to an object.

public void
bind(Name name, Object obj)

Implements javax.naming.Context.bind.

Binds a name to an object.

public void
bind(String name, Object obj, Attributes attrs)

Implements javax.naming.directory.DirContext.bind.

Binds a name to an object, along with associated attributes.

public void
bind(Name name, Object obj, Attributes attrs)

Implements javax.naming.directory.DirContext.bind.

Binds a name to an object, along with associated attributes.

public void
close()

Implements javax.naming.Context.close.

Closes this context.

public String
composeName(String name, String prefix)

Implements javax.naming.Context.composeName.

Composes the name of this context with a name relative to this context.

public Name
composeName(Name name, Name prefix)

Implements javax.naming.Context.composeName.

Composes the name of this context with a name relative to this context.

public Context
createSubcontext(String name)

Implements javax.naming.Context.createSubcontext.

Creates and binds a new context.

public Context
createSubcontext(Name name)

Implements javax.naming.Context.createSubcontext.

Creates and binds a new context.

public DirContext
createSubcontext(String name, Attributes attrs)

Implements javax.naming.directory.DirContext.createSubcontext.

Creates and binds a new context, along with associated attributes.

public DirContext
createSubcontext(Name name, Attributes attrs)

Implements javax.naming.directory.DirContext.createSubcontext.

Creates and binds a new context, along with associated attributes.

public void
destroySubcontext(String name)

Implements javax.naming.Context.destroySubcontext.

Destroys the named context and removes it from the namespace.

public void
destroySubcontext(Name name)

Implements javax.naming.Context.destroySubcontext.

Destroys the named context and removes it from the namespace.

public ExtendedResponse
extendedOperation(ExtendedRequest request)

Implements javax.naming.ldap.LdapContext.extendedOperation.

Performs an extended operation.

public Attributes
getAttributes(String name)

Implements javax.naming.directory.DirContext.getAttributes.

Retrieves all of the attributes associated with a named object.

public Attributes
getAttributes(Name name)

Implements javax.naming.directory.DirContext.getAttributes.

Retrieves all of the attributes associated with a named object.

public Attributes
getAttributes(String name, String[] attrIds)

Implements javax.naming.directory.DirContext.getAttributes.

Retrieves selected attributes associated with a named object.

public Attributes
getAttributes(Name name, String[] attrIds)

Implements javax.naming.directory.DirContext.getAttributes.

Retrieves selected attributes associated with a named object.

public Control[]
getConnectControls()

Implements javax.naming.ldap.LdapContext.getConnectControls.

Retrieves the connection request controls in effect for this context.

public Hashtable<?, ?>
getEnvironment()

Implements javax.naming.Context.getEnvironment.

Retrieves the environment in effect for this context.

public String
getNameInNamespace()

Implements javax.naming.Context.getNameInNamespace.

Retrieves the full name of this context within its own namespace.

public NameParser
getNameParser(String name)

Implements javax.naming.Context.getNameParser.

Retrieves the parser associated with the named context.

public NameParser
getNameParser(Name name)

Implements javax.naming.Context.getNameParser.

Retrieves the parser associated with the named context.

public Control[]
getRequestControls()

Implements javax.naming.ldap.LdapContext.getRequestControls.

Retrieves the request controls in effect for this context.

public Control[]
getResponseControls()

Implements javax.naming.ldap.LdapContext.getResponseControls.

Retrieves the response controls produced as a result of the last method invoked on this context.

public DirContext
getSchema(String name)

Implements javax.naming.directory.DirContext.getSchema.

Retrieves the schema associated with the named object.

public DirContext
getSchema(Name name)

Implements javax.naming.directory.DirContext.getSchema.

Retrieves the schema associated with the named object.

public DirContext
getSchemaClassDefinition(String name)

Implements javax.naming.directory.DirContext.getSchemaClassDefinition.

Retrieves a context containing the schema objects of the named object's class definitions.

public DirContext
getSchemaClassDefinition(Name name)

Implements javax.naming.directory.DirContext.getSchemaClassDefinition.

Retrieves a context containing the schema objects of the named object's class definitions.

private void
initDefaults(String referral, String nextName)

public NamingEnumeration<NameClassPair>
list(String name)

Implements javax.naming.Context.list.

Enumerates the names bound in the named context, along with the class names of objects bound to them.

public NamingEnumeration<NameClassPair>
list(Name name)

Implements javax.naming.Context.list.

Enumerates the names bound in the named context, along with the class names of objects bound to them.

public NamingEnumeration<Binding>
listBindings(String name)

Implements javax.naming.Context.listBindings.

Enumerates the names bound in the named context, along with the objects bound to them.

public NamingEnumeration<Binding>
listBindings(Name name)

Implements javax.naming.Context.listBindings.

Enumerates the names bound in the named context, along with the objects bound to them.

public Object
lookup(String name)

Implements javax.naming.Context.lookup.

Retrieves the named object.

public Object
lookup(Name name)

Implements javax.naming.Context.lookup.

Retrieves the named object.

public void
modifyAttributes(String name, int mod_op, Attributes attrs)

Implements javax.naming.directory.DirContext.modifyAttributes.

Modifies the attributes associated with a named object.

public void
modifyAttributes(Name name, int mod_op, Attributes attrs)

Implements javax.naming.directory.DirContext.modifyAttributes.

Modifies the attributes associated with a named object.

public void
modifyAttributes(String name, ModificationItem[] mods)

Implements javax.naming.directory.DirContext.modifyAttributes.

Modifies the attributes associated with a named object using an ordered list of modifications.

public void
modifyAttributes(Name name, ModificationItem[] mods)

Implements javax.naming.directory.DirContext.modifyAttributes.

Modifies the attributes associated with a named object using an ordered list of modifications.

public LdapContext
newInstance(Control[] requestControls)

Implements javax.naming.ldap.LdapContext.newInstance.

Creates a new instance of this context initialized using request controls.

private SearchControls
private String
private Name
public void
rebind(String name, Object obj)

Implements javax.naming.Context.rebind.

Binds a name to an object, overwriting any existing binding.

public void
rebind(Name name, Object obj)

Implements javax.naming.Context.rebind.

Binds a name to an object, overwriting any existing binding.

public void
rebind(String name, Object obj, Attributes attrs)

Implements javax.naming.directory.DirContext.rebind.

Binds a name to an object, along with associated attributes, overwriting any existing binding.

public void
rebind(Name name, Object obj, Attributes attrs)

Implements javax.naming.directory.DirContext.rebind.

Binds a name to an object, along with associated attributes, overwriting any existing binding.

public void
reconnect(Control[] connCtls)

Implements javax.naming.ldap.LdapContext.reconnect.

Reconnects to the LDAP server using the supplied controls and this context's environment.

public Object
removeFromEnvironment(String propName)

Implements javax.naming.Context.removeFromEnvironment.

Removes an environment property from the environment of this context.

public void
rename(String oldName, String newName)

Implements javax.naming.Context.rename.

Binds a new name to the object bound to an old name, and unbinds the old name.

public void
rename(Name oldName, Name newName)

Implements javax.naming.Context.rename.

Binds a new name to the object bound to an old name, and unbinds the old name.

public NamingEnumeration<SearchResult>
search(String name, Attributes matchingAttributes)

Implements javax.naming.directory.DirContext.search.

Searches in a single context for objects that contain a specified set of attributes.

public NamingEnumeration<SearchResult>
search(Name name, Attributes matchingAttributes)

Implements javax.naming.directory.DirContext.search.

Searches in a single context for objects that contain a specified set of attributes.

public NamingEnumeration<SearchResult>
search(String name, Attributes matchingAttributes, String[] attributesToReturn)

Implements javax.naming.directory.DirContext.search.

Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.

public NamingEnumeration<SearchResult>
search(Name name, Attributes matchingAttributes, String[] attributesToReturn)

Implements javax.naming.directory.DirContext.search.

Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.

public NamingEnumeration<SearchResult>
search(String name, String filter, SearchControls cons)

Implements javax.naming.directory.DirContext.search.

Searches in the named context or object for entries that satisfy the given search filter.

public NamingEnumeration<SearchResult>
search(Name name, String filter, SearchControls cons)

Implements javax.naming.directory.DirContext.search.

Searches in the named context or object for entries that satisfy the given search filter.

public NamingEnumeration<SearchResult>
search(String name, String filterExpr, Object[] filterArgs, SearchControls cons)

Implements javax.naming.directory.DirContext.search.

Searches in the named context or object for entries that satisfy the given search filter.

public NamingEnumeration<SearchResult>
search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons)

Implements javax.naming.directory.DirContext.search.

Searches in the named context or object for entries that satisfy the given search filter.

pack-priv void
setHopCount(int hopCount)

public void
setRequestControls(Control[] requestControls)

Implements javax.naming.ldap.LdapContext.setRequestControls.

Sets the request controls for methods subsequently invoked on this context.

private Name
toName(String name)

public void
unbind(String name)

Implements javax.naming.Context.unbind.

Unbinds the named object.

public void
unbind(Name name)

Implements javax.naming.Context.unbind.

Unbinds the named object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait