| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Hashtable environment = …;
InitialDirContext root = new InitialDirContext(environment);
Based on 19 examples
public class InitialDirContext extends InitialContext implements DirContext
This class is the starting context for performing directory operations. The documentation in the class description of InitialContext (including those for synchronization) apply here.
Field Summary |
---|
Fields inherited from class javax.naming.InitialContext |
---|
defaultInitCtx, gotDefault, myProps |
Constructor Summary | |
---|---|
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. |
Methods inherited from class javax.naming.InitialContext |
---|
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, doLookup, doLookup, 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 |
---|
public InitialDirContext() throws NamingException
NamingException
- if a naming exception is encounteredprotected InitialDirContext(boolean lazy) throws NamingException
lazy
- true means do not initialize the initial DirContext; false
is equivalent to calling new InitialDirContext()NamingException
- if a naming exception is encounteredpublic 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.NamingException
- if a naming exception is encounteredMethod Detail |
---|
public void bind(Name name, Object obj, Attributes attrs) throws NamingException
name
obj
attrs
NamingException
public void bind(String name, Object obj, Attributes attrs) throws NamingException
name
obj
attrs
NamingException
public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException
name
attrs
NamingException
public DirContext createSubcontext(String name, Attributes attrs) throws NamingException
name
attrs
NamingException
public Attributes getAttributes(Name name) throws NamingException
name
NamingException
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException
name
attrIds
NamingException
public Attributes getAttributes(String name) throws NamingException
name
NamingException
public Attributes getAttributes(String name, String[] attrIds) throws NamingException
name
attrIds
NamingException
public DirContext getSchema(Name name) throws NamingException
name
NamingException
public DirContext getSchema(String name) throws NamingException
name
NamingException
public DirContext getSchemaClassDefinition(Name name) throws NamingException
name
NamingException
public DirContext getSchemaClassDefinition(String name) throws NamingException
name
NamingException
public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException
name
mod_op
attrs
NamingException
public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException
name
mods
NamingException
public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException
name
mod_op
attrs
NamingException
public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException
name
mods
NamingException
public void rebind(Name name, Object obj, Attributes attrs) throws NamingException
name
obj
attrs
NamingException
public void rebind(String name, Object obj, Attributes attrs) throws NamingException
name
obj
attrs
NamingException
public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException
name
matchingAttributes
NamingException
public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
name
matchingAttributes
attributesToReturn
NamingException
public NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
name
filterExpr
filterArgs
cons
NamingException
public NamingEnumeration search(Name name, String filter, SearchControls cons) throws NamingException
name
filter
cons
NamingException
public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException
name
matchingAttributes
NamingException
public NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException
name
matchingAttributes
attributesToReturn
NamingException
public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException
name
filterExpr
filterArgs
cons
NamingException
public NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException
name
filter
cons
NamingException
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |