Home » openjdk-7 » javax » naming » directory » [javadoc | source]
javax.naming.directory
public class: InitialDirContext [javadoc | source]
java.lang.Object
   javax.naming.InitialContext
      javax.naming.directory.InitialDirContext

All Implemented Interfaces:
    DirContext, Context

Direct Known Subclasses:
    InitialLdapContext

This class is the starting context for performing directory operations. The documentation in the class description of InitialContext (including those for synchronization) apply here.
Fields inherited from javax.naming.InitialContext:
myProps,  defaultInitCtx,  gotDefault
Constructor:
 public InitialDirContext() throws NamingException 
    Constructs an initial DirContext. No environment properties are supplied. Equivalent to new InitialDirContext(null).
 protected InitialDirContext(boolean lazy) throws NamingException 
    Constructs an initial DirContext with the option of not initializing it. This may be used by a constructor in a subclass when the value of the environment parameter is not yet known at the time the InitialDirContext constructor is called. The subclass's constructor will call this constructor, compute the value of the environment, and then call init() before returning.
    Parameters:
    lazy - true means do not initialize the initial DirContext; false is equivalent to calling new InitialDirContext()
    Throws:
    NamingException - if a naming exception is encountered
    Also see:
    InitialContext#init(Hashtable)
    since: 1.3 -
 public InitialDirContext(Hashtable<?, ?> environment) throws NamingException 
    Constructs an initial DirContext using the supplied environment. Environment properties are discussed in the javax.naming.InitialContext class description.

    This constructor will not modify environment or save a reference to it, but may save a clone. Caller should not modify mutable keys and values in environment after it has been passed to the constructor.

    Parameters:
    environment - environment used to create the initial DirContext. Null indicates an empty environment.
    Throws:
    NamingException - if a naming exception is encountered
Method from javax.naming.directory.InitialDirContext Summary:
bind,   bind,   createSubcontext,   createSubcontext,   getAttributes,   getAttributes,   getAttributes,   getAttributes,   getSchema,   getSchema,   getSchemaClassDefinition,   getSchemaClassDefinition,   modifyAttributes,   modifyAttributes,   modifyAttributes,   modifyAttributes,   rebind,   rebind,   search,   search,   search,   search,   search,   search,   search,   search
Methods from 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 from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.naming.directory.InitialDirContext Detail:
 public  void bind(String name,
    Object obj,
    Attributes attrs) throws NamingException 
 public  void bind(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 Attributes getAttributes(String name) throws NamingException 
 public Attributes getAttributes(Name name) throws NamingException 
 public Attributes getAttributes(String name,
    String[] attrIds) throws NamingException 
 public Attributes getAttributes(Name name,
    String[] attrIds) 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  void modifyAttributes(String name,
    ModificationItem[] mods) throws NamingException 
 public  void modifyAttributes(Name name,
    ModificationItem[] mods) 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 rebind(String name,
    Object obj,
    Attributes attrs) throws NamingException 
 public  void rebind(Name name,
    Object obj,
    Attributes attrs) throws NamingException 
 public NamingEnumeration<SearchResult> search(String name,
    Attributes matchingAttributes) throws NamingException 
 public NamingEnumeration<SearchResult> search(Name name,
    Attributes matchingAttributes) throws NamingException 
 public NamingEnumeration<SearchResult> search(String name,
    Attributes matchingAttributes,
    String[] attributesToReturn) throws NamingException 
 public NamingEnumeration<SearchResult> search(Name name,
    Attributes matchingAttributes,
    String[] attributesToReturn) throws NamingException 
 public NamingEnumeration<SearchResult> search(String name,
    String filter,
    SearchControls cons) throws NamingException 
 public NamingEnumeration<SearchResult> search(Name name,
    String filter,
    SearchControls cons) throws NamingException 
 public NamingEnumeration<SearchResult> search(String name,
    String filterExpr,
    Object[] filterArgs,
    SearchControls cons) throws NamingException 
 public NamingEnumeration<SearchResult> search(Name name,
    String filterExpr,
    Object[] filterArgs,
    SearchControls cons) throws NamingException