API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming. Context View Source
Author(s)
Rosanna Lee
Scott Seligman
R. Vasudevan
Since
1.3
Version
1.14 06/07/19
Serial
Hierarchy
 Context
Subinterfaces
Description
public interface Context
  This interface represents a naming context, which consists of a set of name-to-object bindings.
See also:   
Methods
Hide/Show inherited methods
public Object addToEnvironment (String propName, Object propVal) throws NamingException
  Adds a new environment property to the environment of this context.
public void bind (Name name, Object obj) throws NamingException
  Binds a name to an object.
public void bind (String name, Object obj) throws NamingException
  Binds a name to an object.
public void close () throws NamingException
  Closes this context.
public Name composeName (Name name, Name prefix) throws NamingException
  Composes the name of this context with a name relative to this context.
public String composeName (String name, String prefix) throws NamingException
  Composes the name of this context with a name relative to this context.
public Context createSubcontext (Name name) throws NamingException
  Creates and binds a new context.
public Context createSubcontext (String name) throws NamingException
  Creates and binds a new context.
public void destroySubcontext (Name name) throws NamingException
  Destroys the named context and removes it from the namespace.
public void destroySubcontext (String name) throws NamingException
  Destroys the named context and removes it from the namespace.
public Hashtable<Object, Object> getEnvironment () throws NamingException
  Retrieves the environment in effect for this context.
public String getNameInNamespace () throws NamingException
  Retrieves the full name of this context within its own namespace.
public NameParser getNameParser (Name name) throws NamingException
  Retrieves the parser associated with the named context.
public NameParser getNameParser (String name) throws NamingException
  Retrieves the parser associated with the named context.
public NamingEnumeration<NameClassPair> list (Name name) throws NamingException
  Enumerates the names bound in the named context, along with the class names of objects bound to them.
public NamingEnumeration<NameClassPair> list (String name) throws NamingException
  Enumerates the names bound in the named context, along with the class names of objects bound to them.
public NamingEnumeration<Binding> listBindings (Name name) throws NamingException
  Enumerates the names bound in the named context, along with the objects bound to them.
public NamingEnumeration<Binding> listBindings (String name) throws NamingException
  Enumerates the names bound in the named context, along with the objects bound to them.
public Object lookup (Name name) throws NamingException
  Retrieves the named object.
public Object lookup (String name) throws NamingException
  Retrieves the named object.
public Object lookupLink (Name name) throws NamingException
  Retrieves the named object, following links except for the terminal atomic component of the name.
public Object lookupLink (String name) throws NamingException
  Retrieves the named object, following links except for the terminal atomic component of the name.
public void rebind (Name name, Object obj) throws NamingException
  Binds a name to an object, overwriting any existing binding.
public void rebind (String name, Object obj) throws NamingException
  Binds a name to an object, overwriting any existing binding.
public Object removeFromEnvironment (String propName) throws NamingException
  Removes an environment property from the environment of this context.
public void rename (Name oldName, Name newName) throws NamingException
  Binds a new name to the object bound to an old name, and unbinds the old name.
public void rename (String oldName, String newName) throws NamingException
  Binds a new name to the object bound to an old name, and unbinds the old name.
public void unbind (Name name) throws NamingException
  Unbinds the named object.
public void unbind (String name) throws NamingException
  Unbinds the named object.
Fields
Hide/Show inherited fields
publicfinalstatic String APPLET = "java.naming.applet"
  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"
  Constant that holds the name of the environment property for specifying the authoritativeness of the service requested.
publicfinalstatic String BATCHSIZE = "java.naming.batchsize"
  Constant that holds the name of the environment property for specifying the batch size to use when returning data via the service's protocol.
publicfinalstatic String DNS_URL = "java.naming.dns.url"
  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").
publicfinalstatic String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial"
  Constant that holds the name of the environment property for specifying the initial context factory to use.
publicfinalstatic String LANGUAGE = "java.naming.language"
  Constant that holds the name of the environment property for specifying the preferred language to use with the service.
publicfinalstatic String OBJECT_FACTORIES = "java.naming.factory.object"
  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"
  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"
  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"
  Constant that holds the name of the environment property for specifying the security level to use.
publicfinalstatic String SECURITY_CREDENTIALS = "java.naming.security.credentials"
  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"
  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"
  Constant that holds the name of the environment property for specifying the security protocol to use.
publicfinalstatic String STATE_FACTORIES = "java.naming.factory.state"
  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"
  Constant that holds the name of the environment property for specifying the list of package prefixes to use when loading in URL context factories.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar