|
JNDI 1.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.naming.InitialContext | +--javax.naming.directory.InitialDirContext
This class is the starting context for performing directory operations. The documentation in the class description of InitialContext (including those for synchronization) apply here.
InitialContext
Fields inherited from class javax.naming.InitialContext |
defaultInitCtx,
gotDefault,
myProps |
Constructor Summary | |
InitialDirContext()
Constructs an initial DirContext. |
|
InitialDirContext(java.util.Hashtable environment)
Constructs an initial DirContext using information supplied in 'environment'. |
Method Summary | |
void |
bind(Name name,
java.lang.Object obj,
Attributes attrs)
Binds 'name' to the object 'obj' and associate the attributes 'attrs' with the named object. |
void |
bind(java.lang.String name,
java.lang.Object obj,
Attributes attrs)
Binds 'name' to the object 'obj' and associate the attributes 'attrs' with the named object. |
DirContext |
createSubcontext(Name name,
Attributes attrs)
Creates a new subcontext with the given name resolved relative to the initial context, and associates the attributes 'attrs' with the named object. |
DirContext |
createSubcontext(java.lang.String name,
Attributes attrs)
Creates a new subcontext with the given name resolved relative to the initial context, and associates the attributes 'attrs' with the named object. |
Attributes |
getAttributes(Name name)
Retrieves all the attributes associated with named object. |
Attributes |
getAttributes(Name name,
java.lang.String[] attrIds)
Retrieves the attributes listed in attrIds associated with named object. |
Attributes |
getAttributes(java.lang.String name)
Retrieves all the attributes associated with named object. |
Attributes |
getAttributes(java.lang.String name,
java.lang.String[] attrIds)
Retrieves the attributes listed in attrIds associated with named object. |
DirContext |
getSchema(Name name)
Retrieves the schema associated with this initial DirContext. |
DirContext |
getSchema(java.lang.String name)
Retrieves the schema associated with this initial DirContext. |
DirContext |
getSchemaClassDefinition(Name name)
Retrieves the schema class definition associated with this initial context. |
DirContext |
getSchemaClassDefinition(java.lang.String name)
Retrieves the schema class definition associated with this initial context. |
void |
modifyAttributes(Name name,
int mod_op,
Attributes attrs)
Modifies according to mod_op and attrs the attributes associated with the named object. |
void |
modifyAttributes(Name name,
ModificationItem[] mods)
Modifies according to mods the attributes associated with the named object. |
void |
modifyAttributes(java.lang.String name,
int mod_op,
Attributes attrs)
Modifies according to mod_op and attrs the attributes associated with the named object. |
void |
modifyAttributes(java.lang.String name,
ModificationItem[] mods)
Modifies according to mods the attributes associated with the named object. |
void |
rebind(Name name,
java.lang.Object obj,
Attributes attrs)
Binds 'name' to the object 'obj' and associates the attributes 'attrs' with the named object. |
void |
rebind(java.lang.String name,
java.lang.Object obj,
Attributes attrs)
Binds 'name' to the object 'obj' and associates the attributes 'attrs' with the named object. |
NamingEnumeration |
search(Name name,
Attributes matchingAttributes)
Searches for named objects that contain a set of attributes in a single context. |
NamingEnumeration |
search(Name name,
Attributes matchingAttributes,
java.lang.String[] attributesToReturn)
Searches for named objects that contain a set of attributes in a single context. |
NamingEnumeration |
search(Name name,
java.lang.String filterExpr,
java.lang.Object[] filterArgs,
SearchControls cons)
Search in the context named by 'name' entries with that satisfies the given 'filter'. |
NamingEnumeration |
search(Name name,
java.lang.String filter,
SearchControls cons)
Search in the context named by 'name' entries with that satisfies the given string 'filter'. |
NamingEnumeration |
search(java.lang.String name,
Attributes matchingAttributes)
Searches for named objects that contain a set of attributes in a single context. |
NamingEnumeration |
search(java.lang.String name,
Attributes matchingAttributes,
java.lang.String[] attributesToReturn)
Searches for named objects that contain a set of attributes in a single context. |
NamingEnumeration |
search(java.lang.String name,
java.lang.String filterExpr,
java.lang.Object[] filterArgs,
SearchControls cons)
Search in the context named by 'name' entries with that satisfies the given 'filter'. |
NamingEnumeration |
search(java.lang.String name,
java.lang.String filter,
SearchControls cons)
Search in the context named by 'name' entries with that satisfies the given string 'filter'. |
Methods inherited from class javax.naming.InitialContext |
addToEnvironment,
bind,
bind,
close,
composeName,
composeName,
createSubcontext,
createSubcontext,
destroySubcontext,
destroySubcontext,
getDefaultInitCtx,
getEnvironment,
getNameParser,
getNameParser,
getURLOrDefaultInitCtx,
getURLOrDefaultInitCtx,
list,
list,
listBindings,
listBindings,
lookup,
lookup,
lookupLink,
lookupLink,
rebind,
rebind,
removeFromEnvironment,
rename,
rename,
unbind,
unbind |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public InitialDirContext() throws NamingException
public InitialDirContext(java.util.Hashtable environment) throws NamingException
environment
- The possibly null environment
used for creating the initial context
(such as user name, password, etc.)Method Detail |
public Attributes getAttributes(java.lang.String name) throws NamingException
name
- The non-null string name of the object for which to retrieve
the attributes. name is resolved relative to the initial context.DirContext.getAttributes(javax.naming.Name)
public Attributes getAttributes(java.lang.String name, java.lang.String[] attrIds) throws NamingException
name
- The non-null string name of the object for which to retrieve the attributes. name is resolved relative to the initial context.attrIds
- The attribute ids of the attributes to retrieve. Possibly null.public Attributes getAttributes(Name name) throws NamingException
name
- The non-null name of the object for which to retrieve the attributes.
name is resolved relative to the initial context.public Attributes getAttributes(Name name, java.lang.String[] attrIds) throws NamingException
name
- The non-null name of the object for which to retrieve the attributes.
name is resolved relative to the initial context.attrIds
- The attribute ids of the attributes to retrieve. Can be null.public void modifyAttributes(java.lang.String name, int mod_op, Attributes attrs) throws NamingException
name
- The string name of the object whose attributes will be updated. name is resolved relative to the initial context.mod_op
- The modification operation.
It is one of ADD_ATTRIBUTE, REPLACE_ATTRIBUTE,
DELETE_ATTRIBUTE.attrs
- The non-null set of attributes to use for the modification.public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException
name
- The non-null name of the object whose attributes will be updated. name is resolved relative to the initial context.attrs
- The non-null attributes to use for the modification.mod_op
- The modification code.public void modifyAttributes(java.lang.String name, ModificationItem[] mods) throws NamingException
name
- The non-null string name of the object whose attributes will be updated. name is resolved relative to the initial context.mods
- The non-null list of modifications to apply.public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException
name
- The non-null name of the object whose attributes will be updated. name is resolved relative to the initial context.mods
- The non-null list of modifications to apply.public void bind(java.lang.String name, java.lang.Object obj, Attributes attrs) throws NamingException
name
- The non-null name to bind, resolved relative to the initial
context. It cannot be empty.obj
- The possibly null object to bind.attrs
- The possibly null set of attributes to associate
with the bound object.public void bind(Name name, java.lang.Object obj, Attributes attrs) throws NamingException
name
- The non-null name to bind, resolved relative to the initial
context. It cannot be empty.obj
- The possibly null object to bind.attrs
- The possibly null set of attributes to associate with the bound object.public void rebind(java.lang.String name, java.lang.Object obj, Attributes attrs) throws NamingException
name
- The non-null name to bind, resolved relative to the initial context.obj
- The possibly null object to bind.attrs
- The possibly null set of attributes to associate with the bound object.public void rebind(Name name, java.lang.Object obj, Attributes attrs) throws NamingException
name
- The non-null name to bind, resolved relative to the initial context.obj
- The possibly null object to bind.attrs
- The possibly null attributes to associate with the bound object.public DirContext createSubcontext(java.lang.String name, Attributes attrs) throws NamingException
name
- The non-null string name to use when creating the new context.
name is resolved relative to the initial context.attrs
- The attributes to associate with the newly created context.
Can be null.public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException
name
- The non-null name to use when creating the new context.
name is resolved relative to the initial context.attrs
- The attributes to associate with the newly created context.
Can be null.public DirContext getSchema(java.lang.String name) throws NamingException
name
- The non-null name of context.public DirContext getSchema(Name name) throws NamingException
name
- The non-null name of context.public DirContext getSchemaClassDefinition(java.lang.String name) throws NamingException
name
- The non-null name of context.public DirContext getSchemaClassDefinition(Name name) throws NamingException
name
- The non-null name of context.public NamingEnumeration search(java.lang.String name, Attributes matchingAttributes) throws NamingException
name
- The non-null string name of the context to search. name is resolved relative to the initial context.matchingAttributes
- The possibly null set of attributes to search for.public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException
name
- The non-null name of the context to search. name is resolved relative to the initial context.matchingAttributes
- The possibly null set of attributes to search for.public NamingEnumeration search(java.lang.String name, Attributes matchingAttributes, java.lang.String[] attributesToReturn) throws NamingException
name
- The non-null name of the context to search. name is resolved relative to the initial context.matchingAttributes
- The attributes to search for. Possibly null.attributesToReturn
- The attributes to return. Possibly null.public NamingEnumeration search(Name name, Attributes matchingAttributes, java.lang.String[] attributesToReturn) throws NamingException
name
- The non-null name of the context to search. name is resolved relative to the initial context.matchingAttributes
- The attributes to search for. Possibly null.attributesToReturn
- The attributes to return. Possibly null.public NamingEnumeration search(java.lang.String name, java.lang.String filter, SearchControls cons) throws NamingException
name
- The non-null string name of the context/object to start the search. name is resolved relative to the initial context.filter
- The non-null string filter to use for the search. The syntax
used for the filter is the LDAP filter syntax (RFC 2254).cons
- The search constraints to be applied to this search. Can be null.public NamingEnumeration search(Name name, java.lang.String filter, SearchControls cons) throws NamingException
name
- The non-null name of the context/object to start the search. name is resolved relative to the initial context.filter
- The non-null string filter to use for the search. The syntax
used for the filter is the LDAP filter syntax (RFC 2254).cons
- The possibly null search constraints to be applied to this search.public NamingEnumeration search(java.lang.String name, java.lang.String filterExpr, java.lang.Object[] filterArgs, SearchControls cons) throws NamingException
name
- The non-null string name of the context/object to start the search. name is resolved relative to the initial context.filter
- The non-null filter to use for the search.cons
- The possibly null search constraints to be applied to this search.public NamingEnumeration search(Name name, java.lang.String filterExpr, java.lang.Object[] filterArgs, SearchControls cons) throws NamingException
name
- The non-null name of the context/object to start the search. name is resolved relative to the initial context.filter
- The non-null filter to use for the search.cons
- The possibly null search constraints to be applied to this search.
|
JNDI 1.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |