Example usage for Java javax.naming.directory DirContext fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ADD_ATTRIBUTE This constant specifies to add an attribute with the specified values. |
int | REPLACE_ATTRIBUTE This constant specifies to replace an attribute with specified values. |
int | REMOVE_ATTRIBUTE This constant specifies to delete the specified attribute values from the attribute. |
Object | addToEnvironment(String propName, Object propVal) Adds a new environment property to the environment of this context. |
void | bind(Name name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes. |
void | bind(String name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes. |
void | bind(Name name, Object obj) Binds a name to an object. |
void | close() Closes this context. |
DirContext | createSubcontext(Name name, Attributes attrs) Creates and binds a new context, along with associated attributes. |
DirContext | createSubcontext(String name, Attributes attrs) Creates and binds a new context, along with associated attributes. |
Context | createSubcontext(Name name) Creates and binds a new context. |
void | destroySubcontext(Name name) Destroys the named context and removes it from the namespace. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
Attributes | getAttributes(Name name, String[] attrIds) Retrieves selected attributes associated with a named object. |
Attributes | getAttributes(String name, String[] attrIds) Retrieves selected attributes associated with a named object. |
Attributes | getAttributes(Name name) Retrieves all of the attributes associated with a named object. |
Attributes | getAttributes(String name) Retrieves all of the attributes associated with a named object. |
Hashtable,?> | getEnvironment() Retrieves the environment in effect for this context. |
String | getNameInNamespace() Retrieves the full name of this context within its own namespace. |
NameParser | getNameParser(Name name) Retrieves the parser associated with the named context. |
DirContext | getSchema(Name name) Retrieves the schema associated with the named object. |
DirContext | getSchema(String name) Retrieves the schema associated with the named object. |
DirContext | getSchemaClassDefinition(Name name) Retrieves a context containing the schema objects of the named object's class definitions. |
DirContext | getSchemaClassDefinition(String name) Retrieves a context containing the schema objects of the named object's class definitions. |
int | hashCode() Returns a hash code value for the object. |
NamingEnumeration | list(Name name) Enumerates the names bound in the named context, along with the class names of objects bound to them. |
NamingEnumeration | listBindings(Name name) Enumerates the names bound in the named context, along with the objects bound to them. |
Object | lookup(Name name) Retrieves the named object. |
void | modifyAttributes(Name name, ModificationItem[] mods) Modifies the attributes associated with a named object using an ordered list of modifications. |
void | modifyAttributes(String name, ModificationItem[] mods) Modifies the attributes associated with a named object using an ordered list of modifications. |
void | modifyAttributes(Name name, int mod_op, Attributes attrs) Modifies the attributes associated with a named object. |
void | modifyAttributes(String name, int mod_op, Attributes attrs) Modifies the attributes associated with a named object. |
void | rebind(Name name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes, overwriting any existing binding. |
void | rebind(String name, Object obj, Attributes attrs) Binds a name to an object, along with associated attributes, overwriting any existing binding. |
Object | removeFromEnvironment(String propName) Removes an environment property from the environment of this context. |
void | rename(Name oldName, Name newName) Binds a new name to the object bound to an old name, and unbinds the old name. |
NamingEnumeration | search(Name name, Attributes matchingAttributes, String[] attributesToReturn) Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes. |
NamingEnumeration | search(String name, Attributes matchingAttributes, String[] attributesToReturn) Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes. |
NamingEnumeration | search(Name name, String filter, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter. |
NamingEnumeration | search(String name, String filter, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter. |
NamingEnumeration | search(Name name, Attributes matchingAttributes) Searches in a single context for objects that contain a specified set of attributes. |
NamingEnumeration | search(String name, Attributes matchingAttributes) Searches in a single context for objects that contain a specified set of attributes. |
NamingEnumeration | search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter. |
NamingEnumeration | search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) Searches in the named context or object for entries that satisfy the given search filter. |
String | toString() Returns a string representation of the object. |
void | unbind(Name name) Unbinds the named object. |