API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming. InitialContext View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
JNDI 1.1 / Java 2 Platform, Standard Edition, v 1.3
Version
1.15 06/01/06
Serial
Hierarchy
 Object
      InitialContext
Implements
 Context
Subclasses
Description
public class InitialContext
  This class is the starting context for performing naming operations.
Constructors
public InitialContext () throws NamingException
  Constructs an initial context.
protected InitialContext (boolean lazy) throws NamingException
  Constructs an initial context with the option of not initializing it.
public InitialContext (Hashtable<Object, Object> environment) throws NamingException
  Constructs an initial context using the supplied environment.
Methods
Hide/Show inherited methods
public Object addToEnvironment (String propName, Object propVal) throws NamingException [Specified in Context]
public void bind (Name name, Object obj) throws NamingException [Specified in Context]
public void bind (String name, Object obj) throws NamingException [Specified in Context]
public void close () throws NamingException [Specified in Context]
public Name composeName (Name name, Name prefix) throws NamingException [Specified in Context]
  Composes the name of this context with a name relative to this context.
public String composeName (String name, String prefix) throws NamingException [Specified in Context]
  Composes the name of this context with a name relative to this context.
public Context createSubcontext (Name name) throws NamingException [Specified in Context]
public Context createSubcontext (String name) throws NamingException [Specified in Context]
public void destroySubcontext (Name name) throws NamingException [Specified in Context]
public void destroySubcontext (String name) throws NamingException [Specified in Context]
publicstatic T doLookup (Name name) throws NamingException
  A static method to retrieve the named object.
publicstatic T doLookup (String name) throws NamingException
  A static method to retrieve the named object.
protected Context getDefaultInitCtx () throws NamingException
  Retrieves the initial context by calling NamingManager.getInitialContext() and cache it in defaultInitCtx.
public Hashtable<Object, Object> getEnvironment () throws NamingException [Specified in Context]
public String getNameInNamespace () throws NamingException [Specified in Context]
public NameParser getNameParser (Name name) throws NamingException [Specified in Context]
public NameParser getNameParser (String name) throws NamingException [Specified in Context]
protected Context getURLOrDefaultInitCtx (Name name) throws NamingException
  Retrieves a context for resolving name.
protected Context getURLOrDefaultInitCtx (String name) throws NamingException
  Retrieves a context for resolving the string name name.
protected void init (Hashtable<Object, Object> environment) throws NamingException
  Initializes the initial context using the supplied environment.
public NamingEnumeration<NameClassPair> list (Name name) throws NamingException [Specified in Context]
public NamingEnumeration<NameClassPair> list (String name) throws NamingException [Specified in Context]
public NamingEnumeration<Binding> listBindings (Name name) throws NamingException [Specified in Context]
public NamingEnumeration<Binding> listBindings (String name) throws NamingException [Specified in Context]
public Object lookup (Name name) throws NamingException [Specified in Context]
public Object lookup (String name) throws NamingException [Specified in Context]
public Object lookupLink (Name name) throws NamingException [Specified in Context]
public Object lookupLink (String name) throws NamingException [Specified in Context]
public void rebind (Name name, Object obj) throws NamingException [Specified in Context]
public void rebind (String name, Object obj) throws NamingException [Specified in Context]
public Object removeFromEnvironment (String propName) throws NamingException [Specified in Context]
public void rename (Name oldName, Name newName) throws NamingException [Specified in Context]
public void rename (String oldName, String newName) throws NamingException [Specified in Context]
public void unbind (Name name) throws NamingException [Specified in Context]
public void unbind (String name) throws NamingException [Specified in Context]
Fields
Hide/Show inherited fields
publicfinalstatic String APPLET = "java.naming.applet" [Inherited From Context]
  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 Context]
  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 Context]
  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
  Field holding the result of calling NamingManager.getInitialContext().
publicfinalstatic String DNS_URL = "java.naming.dns.url" [Inherited From Context]
  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
  Field indicating whether the initial context has been obtained by calling NamingManager.getInitialContext().
publicfinalstatic String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial" [Inherited From Context]
  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 Context]
  Constant that holds the name of the environment property for specifying the preferred language to use with the service.
protected Hashtable<Object, Object> myProps
  The environment associated with this InitialContext.
publicfinalstatic String OBJECT_FACTORIES = "java.naming.factory.object" [Inherited From Context]
  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 Context]
  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 Context]
  Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed.
publicfinalstatic String SECURITY_AUTHENTICATION = "java.naming.security.authentication" [Inherited From Context]
  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 Context]
  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 Context]
  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 Context]
  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 Context]
  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 Context]
  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