API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.directory. InitialDirContext View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.12 05/11/17
Serial
Hierarchy
 Object
      InitialContext
          InitialDirContext
Implements
 DirContext
Subclasses
Description
public class InitialDirContext
  This class is the starting context for performing directory operations.
See also:    InitialContext
Constructors
public InitialDirContext () throws NamingException
  Constructs an initial DirContext.
protected InitialDirContext (boolean lazy) throws NamingException
  Constructs an initial DirContext with the option of not initializing it.
public InitialDirContext (Hashtable<Object, Object> environment) throws NamingException
  Constructs an initial DirContext using the supplied environment.
Methods
Hide/Show inherited methods
public Object addToEnvironment (String propName, Object propVal) throws NamingException [Inherited From InitialContext]
public void bind (Name name, Object obj) throws NamingException [Inherited From InitialContext]
public void bind (Name name, Object obj, Attributes attrs) throws NamingException [Specified in DirContext]
public void bind (String name, Object obj) throws NamingException [Inherited From InitialContext]
public void bind (String name, Object obj, Attributes attrs) throws NamingException [Specified in DirContext]
public void close () throws NamingException [Inherited From InitialContext]
public Name composeName (Name name, Name prefix) throws NamingException [Inherited From InitialContext]
  Composes the name of this context with a name relative to this context.
public String composeName (String name, String prefix) throws NamingException [Inherited From InitialContext]
  Composes the name of this context with a name relative to this context.
public Context createSubcontext (Name name) throws NamingException [Inherited From InitialContext]
public DirContext createSubcontext (Name name, Attributes attrs) throws NamingException [Specified in DirContext]
public Context createSubcontext (String name) throws NamingException [Inherited From InitialContext]
public DirContext createSubcontext (String name, Attributes attrs) throws NamingException [Specified in DirContext]
public void destroySubcontext (Name name) throws NamingException [Inherited From InitialContext]
public void destroySubcontext (String name) throws NamingException [Inherited From InitialContext]
publicstatic T doLookup (Name name) throws NamingException [Inherited From InitialContext]
  A static method to retrieve the named object.
publicstatic T doLookup (String name) throws NamingException [Inherited From InitialContext]
  A static method to retrieve the named object.
public Attributes getAttributes (Name name) throws NamingException [Specified in DirContext]
public Attributes getAttributes (Name name, String attrIds) throws NamingException [Specified in DirContext]
public Attributes getAttributes (String name) throws NamingException [Specified in DirContext]
public Attributes getAttributes (String name, String attrIds) throws NamingException [Specified in DirContext]
protected Context getDefaultInitCtx () throws NamingException [Inherited From InitialContext]
  Retrieves the initial context by calling NamingManager.getInitialContext() and cache it in defaultInitCtx.
public Hashtable<Object, Object> getEnvironment () throws NamingException [Inherited From InitialContext]
public String getNameInNamespace () throws NamingException [Inherited From InitialContext]
public NameParser getNameParser (Name name) throws NamingException [Inherited From InitialContext]
public NameParser getNameParser (String name) throws NamingException [Inherited From InitialContext]
public DirContext getSchema (Name name) throws NamingException [Specified in DirContext]
public DirContext getSchema (String name) throws NamingException [Specified in DirContext]
public DirContext getSchemaClassDefinition (Name name) throws NamingException [Specified in DirContext]
public DirContext getSchemaClassDefinition (String name) throws NamingException [Specified in DirContext]
protected Context getURLOrDefaultInitCtx (Name name) throws NamingException [Inherited From InitialContext]
  Retrieves a context for resolving name.
protected Context getURLOrDefaultInitCtx (String name) throws NamingException [Inherited From InitialContext]
  Retrieves a context for resolving the string name name.
protected void init (Hashtable<Object, Object> environment) throws NamingException [Inherited From InitialContext]
  Initializes the initial context using the supplied environment.
public NamingEnumeration<NameClassPair> list (Name name) throws NamingException [Inherited From InitialContext]
public NamingEnumeration<NameClassPair> list (String name) throws NamingException [Inherited From InitialContext]
public NamingEnumeration<Binding> listBindings (Name name) throws NamingException [Inherited From InitialContext]
public NamingEnumeration<Binding> listBindings (String name) throws NamingException [Inherited From InitialContext]
public Object lookup (Name name) throws NamingException [Inherited From InitialContext]
public Object lookup (String name) throws NamingException [Inherited From InitialContext]
public Object lookupLink (Name name) throws NamingException [Inherited From InitialContext]
public Object lookupLink (String name) throws NamingException [Inherited From InitialContext]
public void modifyAttributes (Name name, int mod_op, Attributes attrs) throws NamingException [Specified in DirContext]
public void modifyAttributes (Name name, ModificationItem mods) throws NamingException [Specified in DirContext]
public void modifyAttributes (String name, int mod_op, Attributes attrs) throws NamingException [Specified in DirContext]
public void modifyAttributes (String name, ModificationItem mods) throws NamingException [Specified in DirContext]
public void rebind (Name name, Object obj) throws NamingException [Inherited From InitialContext]
public void rebind (Name name, Object obj, Attributes attrs) throws NamingException [Specified in DirContext]
public void rebind (String name, Object obj) throws NamingException [Inherited From InitialContext]
public void rebind (String name, Object obj, Attributes attrs) throws NamingException [Specified in DirContext]
public Object removeFromEnvironment (String propName) throws NamingException [Inherited From InitialContext]
public void rename (Name oldName, Name newName) throws NamingException [Inherited From InitialContext]
public void rename (String oldName, String newName) throws NamingException [Inherited From InitialContext]
public NamingEnumeration<SearchResult> search (Name name, Attributes matchingAttributes) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (Name name, Attributes matchingAttributes, String attributesToReturn) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (Name name, String filterExpr, Object filterArgs, SearchControls cons) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (Name name, String filter, SearchControls cons) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (String name, Attributes matchingAttributes) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (String name, Attributes matchingAttributes, String attributesToReturn) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (String name, String filterExpr, Object filterArgs, SearchControls cons) throws NamingException [Specified in DirContext]
public NamingEnumeration<SearchResult> search (String name, String filter, SearchControls cons) throws NamingException [Specified in DirContext]
public void unbind (Name name) throws NamingException [Inherited From InitialContext]
public void unbind (String name) throws NamingException [Inherited From InitialContext]
Fields
Hide/Show inherited fields
publicfinalstatic int ADD_ATTRIBUTE = "1" [Inherited From DirContext]
  This constant specifies to add an attribute with the specified values.
publicfinalstatic String APPLET = "java.naming.applet" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying an applet for the initial context constructor to use when searching for other properties.
publicfinalstatic String AUTHORITATIVE = "java.naming.authoritative" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the authoritativeness of the service requested.
publicfinalstatic String BATCHSIZE = "java.naming.batchsize" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the batch size to use when returning data via the service's protocol.
protected Context defaultInitCtx [Inherited From InitialContext]
  Field holding the result of calling NamingManager.getInitialContext().
publicfinalstatic String DNS_URL = "java.naming.dns.url" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the DNS host and domain names to use for the JNDI URL context (for example, "dns://somehost/wiz.com").
protected boolean gotDefault [Inherited From InitialContext]
  Field indicating whether the initial context has been obtained by calling NamingManager.getInitialContext().
publicfinalstatic String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the initial context factory to use.
publicfinalstatic String LANGUAGE = "java.naming.language" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the preferred language to use with the service.
protected Hashtable<Object, Object> myProps [Inherited From InitialContext]
  The environment associated with this InitialContext.
publicfinalstatic String OBJECT_FACTORIES = "java.naming.factory.object" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the list of object factories to use.
publicfinalstatic String PROVIDER_URL = "java.naming.provider.url" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying configuration information for the service provider to use.
publicfinalstatic String REFERRAL = "java.naming.referral" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed.
publicfinalstatic int REMOVE_ATTRIBUTE = "3" [Inherited From DirContext]
  This constant specifies to delete the specified attribute values from the attribute.
publicfinalstatic int REPLACE_ATTRIBUTE = "2" [Inherited From DirContext]
  This constant specifies to replace an attribute with specified values.
publicfinalstatic String SECURITY_AUTHENTICATION = "java.naming.security.authentication" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the security level to use.
publicfinalstatic String SECURITY_CREDENTIALS = "java.naming.security.credentials" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the credentials of the principal for authenticating the caller to the service.
publicfinalstatic String SECURITY_PRINCIPAL = "java.naming.security.principal" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the identity of the principal for authenticating the caller to the service.
publicfinalstatic String SECURITY_PROTOCOL = "java.naming.security.protocol" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the security protocol to use.
publicfinalstatic String STATE_FACTORIES = "java.naming.factory.state" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the list of state factories to use.
publicfinalstatic String URL_PKG_PREFIXES = "java.naming.factory.url.pkgs" [Inherited From DirContext]
  Constant that holds the name of the environment property for specifying the list of package prefixes to use when loading in URL context factories.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar