Java javax.naming.directory DirContext fields, constructors, methods, implement or subclass

Example usage for Java javax.naming.directory DirContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.naming.directory DirContext.

The text is from its open source code.

Implementation

javax.naming.directory.DirContext has the following implementations.
Click this link to see all its implementation.

Field

intADD_ATTRIBUTE
This constant specifies to add an attribute with the specified values.
intREPLACE_ATTRIBUTE
This constant specifies to replace an attribute with specified values.
intREMOVE_ATTRIBUTE
This constant specifies to delete the specified attribute values from the attribute.

Method

ObjectaddToEnvironment(String propName, Object propVal)
Adds a new environment property to the environment of this context.
voidbind(Name name, Object obj, Attributes attrs)
Binds a name to an object, along with associated attributes.
voidbind(String name, Object obj, Attributes attrs)
Binds a name to an object, along with associated attributes.
voidbind(Name name, Object obj)
Binds a name to an object.
voidclose()
Closes this context.
DirContextcreateSubcontext(Name name, Attributes attrs)
Creates and binds a new context, along with associated attributes.
DirContextcreateSubcontext(String name, Attributes attrs)
Creates and binds a new context, along with associated attributes.
ContextcreateSubcontext(Name name)
Creates and binds a new context.
voiddestroySubcontext(Name name)
Destroys the named context and removes it from the namespace.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
AttributesgetAttributes(Name name, String[] attrIds)
Retrieves selected attributes associated with a named object.
AttributesgetAttributes(String name, String[] attrIds)
Retrieves selected attributes associated with a named object.
AttributesgetAttributes(Name name)
Retrieves all of the attributes associated with a named object.
AttributesgetAttributes(String name)
Retrieves all of the attributes associated with a named object.
HashtablegetEnvironment()
Retrieves the environment in effect for this context.
StringgetNameInNamespace()
Retrieves the full name of this context within its own namespace.
NameParsergetNameParser(Name name)
Retrieves the parser associated with the named context.
DirContextgetSchema(Name name)
Retrieves the schema associated with the named object.
DirContextgetSchema(String name)
Retrieves the schema associated with the named object.
DirContextgetSchemaClassDefinition(Name name)
Retrieves a context containing the schema objects of the named object's class definitions.
DirContextgetSchemaClassDefinition(String name)
Retrieves a context containing the schema objects of the named object's class definitions.
inthashCode()
Returns a hash code value for the object.
NamingEnumerationlist(Name name)
Enumerates the names bound in the named context, along with the class names of objects bound to them.
NamingEnumerationlistBindings(Name name)
Enumerates the names bound in the named context, along with the objects bound to them.
Objectlookup(Name name)
Retrieves the named object.
voidmodifyAttributes(Name name, ModificationItem[] mods)
Modifies the attributes associated with a named object using an ordered list of modifications.
voidmodifyAttributes(String name, ModificationItem[] mods)
Modifies the attributes associated with a named object using an ordered list of modifications.
voidmodifyAttributes(Name name, int mod_op, Attributes attrs)
Modifies the attributes associated with a named object.
voidmodifyAttributes(String name, int mod_op, Attributes attrs)
Modifies the attributes associated with a named object.
voidrebind(Name name, Object obj, Attributes attrs)
Binds a name to an object, along with associated attributes, overwriting any existing binding.
voidrebind(String name, Object obj, Attributes attrs)
Binds a name to an object, along with associated attributes, overwriting any existing binding.
ObjectremoveFromEnvironment(String propName)
Removes an environment property from the environment of this context.
voidrename(Name oldName, Name newName)
Binds a new name to the object bound to an old name, and unbinds the old name.
NamingEnumerationsearch(Name name, Attributes matchingAttributes, String[] attributesToReturn)
Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.
NamingEnumerationsearch(String name, Attributes matchingAttributes, String[] attributesToReturn)
Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes.
NamingEnumerationsearch(Name name, String filter, SearchControls cons)
Searches in the named context or object for entries that satisfy the given search filter.
NamingEnumerationsearch(String name, String filter, SearchControls cons)
Searches in the named context or object for entries that satisfy the given search filter.
NamingEnumerationsearch(Name name, Attributes matchingAttributes)
Searches in a single context for objects that contain a specified set of attributes.
NamingEnumerationsearch(String name, Attributes matchingAttributes)
Searches in a single context for objects that contain a specified set of attributes.
NamingEnumerationsearch(Name name, String filterExpr, Object[] filterArgs, SearchControls cons)
Searches in the named context or object for entries that satisfy the given search filter.
NamingEnumerationsearch(String name, String filterExpr, Object[] filterArgs, SearchControls cons)
Searches in the named context or object for entries that satisfy the given search filter.
StringtoString()
Returns a string representation of the object.
voidunbind(Name name)
Unbinds the named object.