| java.lang.Object javax.naming.InitialContext javax.naming.directory.InitialDirContext
All known Subclasses: javax.naming.ldap.InitialLdapContext,
InitialDirContext | public class InitialDirContext extends InitialContext implements DirContext(Code) | | This is the root context for directory service operations.
The InitialDirContext behavior is defined by the specification
for javax.naming.InitialContext .
|
Constructor Summary | |
public | InitialDirContext() Constructs a new InitialDirContext with no environment
properties. | protected | InitialDirContext(boolean flag) Constructs a new InitialDirContext instance with no
environment properties. | public | InitialDirContext(Hashtable, ?> hashtable) Constructs a new InitialDirContext instance with
environment properties.
Parameters: hashtable - Contains the environment parameters. |
Method Summary | |
public void | bind(Name name, Object obj, Attributes attributes) | public void | bind(String s, Object obj, Attributes attributes) | public DirContext | createSubcontext(Name name, Attributes attributes) | public DirContext | createSubcontext(String s, Attributes attributes) | public Attributes | getAttributes(Name name) | public Attributes | getAttributes(Name name, String[] as) | public Attributes | getAttributes(String s) | public Attributes | getAttributes(String s, String[] as) | public DirContext | getSchema(Name name) | public DirContext | getSchema(String s) | public DirContext | getSchemaClassDefinition(Name name) | public DirContext | getSchemaClassDefinition(String s) | public void | modifyAttributes(Name name, int i, Attributes attributes) | public void | modifyAttributes(Name name, ModificationItem[] modificationItems) | public void | modifyAttributes(String s, int i, Attributes attributes) | public void | modifyAttributes(String s, ModificationItem[] modificationItems) | public void | rebind(Name name, Object obj, Attributes attributes) | public void | rebind(String s, Object obj, Attributes attributes) | public NamingEnumeration<SearchResult> | search(Name name, Attributes attributes) | public NamingEnumeration<SearchResult> | search(Name name, Attributes attributes, String[] as) | public NamingEnumeration<SearchResult> | search(Name name, String filter, Object[] objs, SearchControls searchControls) | public NamingEnumeration<SearchResult> | search(Name name, String filter, SearchControls searchcontrols) | public NamingEnumeration<SearchResult> | search(String name, Attributes attributes) | public NamingEnumeration<SearchResult> | search(String name, Attributes attributes, String[] as) | public NamingEnumeration<SearchResult> | search(String name, String filter, Object[] objs, SearchControls searchControls) | public NamingEnumeration<SearchResult> | search(String name, String filter, SearchControls searchControls) |
InitialDirContext | public InitialDirContext() throws NamingException(Code) | | Constructs a new InitialDirContext with no environment
properties.
throws: NamingException - If failed to a construct new instance. |
InitialDirContext | protected InitialDirContext(boolean flag) throws NamingException(Code) | | Constructs a new InitialDirContext instance with no
environment properties. A mechanism for subclass constructors to
construct a new InitialDirContext instance before all
environment parameters are known.
Parameters: flag - If flag is true, the new instance is created but notinitialized. In this case the subclass constructor is expectedto call init after the environment parametersare known. If flag is false, a new instance is created andinitialized with no environment parameters. throws: NamingException - If failed to construct new instance. |
InitialDirContext | public InitialDirContext(Hashtable, ?> hashtable) throws NamingException(Code) | | Constructs a new InitialDirContext instance with
environment properties.
Parameters: hashtable - Contains the environment parameters. This constructor will notchange the hashtable or keep a reference to it. The hashtableparameter may be null. throws: NamingException - If failed to construct a new instance. See Also: InitialContext |
Methods inherited from javax.naming.InitialContext | public Object addToEnvironment(String propName, Object propVal) throws NamingException(Code)(Java Doc) public void bind(Name name, Object obj) throws NamingException(Code)(Java Doc) public void bind(String name, Object obj) throws NamingException(Code)(Java Doc) public void close() throws NamingException(Code)(Java Doc) public Name composeName(Name name, Name prefix) throws NamingException(Code)(Java Doc) public String composeName(String name, String prefix) throws NamingException(Code)(Java Doc) public Context createSubcontext(Name name) throws NamingException(Code)(Java Doc) public Context createSubcontext(String name) throws NamingException(Code)(Java Doc) public void destroySubcontext(Name name) throws NamingException(Code)(Java Doc) public void destroySubcontext(String name) throws NamingException(Code)(Java Doc) protected Context getDefaultInitCtx() throws NamingException(Code)(Java Doc) public Hashtable, ?> getEnvironment() throws NamingException(Code)(Java Doc) public String getNameInNamespace() throws NamingException(Code)(Java Doc) public NameParser getNameParser(Name name) throws NamingException(Code)(Java Doc) public NameParser getNameParser(String name) throws NamingException(Code)(Java Doc) protected Context getURLOrDefaultInitCtx(Name name) throws NamingException(Code)(Java Doc) protected Context getURLOrDefaultInitCtx(String name) throws NamingException(Code)(Java Doc) protected void init(Hashtable, ?> env) throws NamingException(Code)(Java Doc) public NamingEnumeration<NameClassPair> list(Name name) throws NamingException(Code)(Java Doc) public NamingEnumeration<NameClassPair> list(String name) throws NamingException(Code)(Java Doc) public NamingEnumeration<Binding> listBindings(Name name) throws NamingException(Code)(Java Doc) public NamingEnumeration<Binding> listBindings(String name) throws NamingException(Code)(Java Doc) public Object lookup(Name name) throws NamingException(Code)(Java Doc) public Object lookup(String name) throws NamingException(Code)(Java Doc) public Object lookupLink(Name name) throws NamingException(Code)(Java Doc) public Object lookupLink(String name) throws NamingException(Code)(Java Doc) public void rebind(Name name, Object obj) throws NamingException(Code)(Java Doc) public void rebind(String name, Object obj) throws NamingException(Code)(Java Doc) public Object removeFromEnvironment(String propName) throws NamingException(Code)(Java Doc) public void rename(Name oldName, Name newName) throws NamingException(Code)(Java Doc) public void rename(String oldName, String newName) throws NamingException(Code)(Java Doc) public void unbind(Name name) throws NamingException(Code)(Java Doc) public void unbind(String name) throws NamingException(Code)(Java Doc)
|
|
|