|
JNDI 1.2 | ||||||||
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. |
protected |
InitialDirContext(boolean lazy)
Constructs an initial DirContext with the option of not initializing it. |
|
InitialDirContext(Hashtable environment)
Constructs an initial DirContext using the supplied environment. |
Method Summary | |
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. |
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. |
Attributes |
getAttributes(Name name)
Retrieves selected attributes associated with a named object. |
Attributes |
getAttributes(Name name,
String[] attrIds)
Retrieves selected attributes associated with a named object. |
Attributes |
getAttributes(String name)
Retrieves all of the attributes associated with a named object. |
Attributes |
getAttributes(String name,
String[] attrIds)
Retrieves all of the attributes associated with a named object. |
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. |
void |
modifyAttributes(Name name,
int mod_op,
Attributes attrs)
Modifies the attributes associated with a named object. |
void |
modifyAttributes(Name name,
ModificationItem[] mods)
Modifies the attributes associated with a named object using an an ordered list of modifications. |
void |
modifyAttributes(String name,
int mod_op,
Attributes attrs)
Modifies the attributes associated with a named object. |
void |
modifyAttributes(String name,
ModificationItem[] mods)
Modifies the attributes associated with a named object using an an ordered list of modifications. |
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. |
NamingEnumeration |
search(Name name,
Attributes matchingAttributes)
Searches in a single context for objects that contain a specified set of attributes. |
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(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(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,
Attributes matchingAttributes)
Searches in a single context for objects that contain a specified set of 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(String 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 filter,
SearchControls cons)
Searches in the named context or object for entries that satisfy the given search filter. |
Methods inherited from class javax.naming.InitialContext |
addToEnvironment,
bind,
bind,
close,
composeName,
composeName,
createSubcontext,
createSubcontext,
destroySubcontext,
destroySubcontext,
getDefaultInitCtx,
getEnvironment,
getNameInNamespace,
getNameParser,
getNameParser,
getURLOrDefaultInitCtx,
getURLOrDefaultInitCtx,
init,
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 |
protected InitialDirContext(boolean lazy) throws NamingException
lazy
- true means do not initialize the initial DirContext; false
is equivalent to calling new InitialDirContext()InitialContext.init(Hashtable)
public InitialDirContext() throws NamingException
InitialDirContext(Hashtable)
public InitialDirContext(Hashtable environment) throws NamingException
This constructor will not modify environment or save a reference to it, but may save a clone.
environment
- environment used to create the initial DirContext.
Null indicates an empty environment.Method Detail |
public Attributes getAttributes(String name) throws NamingException
public Attributes getAttributes(String name, String[] attrIds) throws NamingException
public Attributes getAttributes(Name name) throws NamingException
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException
public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException
public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException
public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException
public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException
public void bind(String name, Object obj, Attributes attrs) throws NamingException
public void bind(Name name, Object obj, Attributes attrs) throws NamingException
public void rebind(String name, Object obj, Attributes attrs) throws NamingException
public void rebind(Name name, Object obj, Attributes attrs) throws NamingException
public DirContext createSubcontext(String name, Attributes attrs) throws NamingException
public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException
public DirContext getSchema(String name) throws NamingException
public DirContext getSchema(Name name) throws NamingException
public DirContext getSchemaClassDefinition(String name) throws NamingException
public DirContext getSchemaClassDefinition(Name name) throws NamingException
public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException
public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException
public NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
public NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException
public NamingEnumeration search(Name name, String filter, SearchControls cons) throws NamingException
public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
public NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
|
JNDI 1.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |