org.openorb.rmi.jndi
Class Context

java.lang.Object
  |
  +--org.openorb.rmi.jndi.Context
All Implemented Interfaces:
javax.naming.Context

Deprecated. This stuff should also go into the NameService as it uses the CosNaming APIs.

public class Context
extends java.lang.Object
implements javax.naming.Context

This class is used to manage a naming context via JNDI API

Version:
$Revision: 1.10 $ $Date: 2002/09/06 13:29:32 $
Author:
Jerome Daniel

Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Constructor Summary
Context(org.omg.CosNaming.NamingContext naming, javax.naming.CompositeName name, java.util.Hashtable env)
          Deprecated. Constructor
 
Method Summary
 java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal)
          Deprecated. Add a property into the context environment
 void bind(javax.naming.Name name, java.lang.Object obj)
          Deprecated. This method is used to bind an object.
 void bind(java.lang.String name, java.lang.Object obj)
          Deprecated. This method is used to bind an object.
 void close()
          Deprecated. Close the current Naming Context
 javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix)
          Deprecated. Return the context fullname
 java.lang.String composeName(java.lang.String name, java.lang.String prefix)
          Deprecated. Return the context fullname
 javax.naming.Context createSubcontext(javax.naming.Name name)
          Deprecated. Create a new Context
 javax.naming.Context createSubcontext(java.lang.String name)
          Deprecated. Create a new Context
 void destroySubcontext(javax.naming.Name name)
          Deprecated. Delete a sub context
 void destroySubcontext(java.lang.String name)
          Deprecated. Delete a sub context
 org.omg.CosNaming.NamingContext getCosContext()
          Deprecated. Get a corba reference to the context this delegates to.
 java.util.Hashtable getEnvironment()
          Deprecated. Return the context environment
 java.lang.String getNameInNamespace()
          Deprecated. Return the context fullname
 javax.naming.NameParser getNameParser(javax.naming.Name name)
          Deprecated. Return the Name Parser
 javax.naming.NameParser getNameParser(java.lang.String name)
          Deprecated. Return the Name Parser
 javax.naming.NamingEnumeration list(javax.naming.Name name)
          Deprecated. Return an enumeration
 javax.naming.NamingEnumeration list(java.lang.String name)
          Deprecated. Return an enumeration
 javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
          Deprecated. Return an enumeration
 javax.naming.NamingEnumeration listBindings(java.lang.String name)
          Deprecated. Return an enumeration
 java.lang.Object lookup(javax.naming.Name name)
          Deprecated. Look up an object
 java.lang.Object lookup(java.lang.String name)
          Deprecated. Look up an object
 java.lang.Object lookupLink(javax.naming.Name name)
          Deprecated. Look up an object
 java.lang.Object lookupLink(java.lang.String name)
          Deprecated. Look up an object
 void rebind(javax.naming.Name name, java.lang.Object obj)
          Deprecated. This method is used to bind an object.
 void rebind(java.lang.String name, java.lang.Object obj)
          Deprecated. This method is used to bind an object.
 java.lang.Object removeFromEnvironment(java.lang.String propName)
          Deprecated. Remove a property from the context environment
 void rename(javax.naming.Name oldName, javax.naming.Name newName)
          Deprecated. Rename an object
 void rename(java.lang.String oldName, java.lang.String newName)
          Deprecated. Rename an object
 void unbind(javax.naming.Name name)
          Deprecated. Unbind a entry
 void unbind(java.lang.String name)
          Deprecated. Unbind a name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context(org.omg.CosNaming.NamingContext naming,
               javax.naming.CompositeName name,
               java.util.Hashtable env)
Deprecated. 
Constructor
Method Detail

getCosContext

public org.omg.CosNaming.NamingContext getCosContext()
Deprecated. 
Get a corba reference to the context this delegates to.

addToEnvironment

public java.lang.Object addToEnvironment(java.lang.String propName,
                                         java.lang.Object propVal)
                                  throws javax.naming.NamingException
Deprecated. 
Add a property into the context environment
Specified by:
addToEnvironment in interface javax.naming.Context

getEnvironment

public java.util.Hashtable getEnvironment()
Deprecated. 
Return the context environment
Specified by:
getEnvironment in interface javax.naming.Context

removeFromEnvironment

public java.lang.Object removeFromEnvironment(java.lang.String propName)
Deprecated. 
Remove a property from the context environment
Specified by:
removeFromEnvironment in interface javax.naming.Context

getNameInNamespace

public java.lang.String getNameInNamespace()
                                    throws javax.naming.NamingException
Deprecated. 
Return the context fullname
Specified by:
getNameInNamespace in interface javax.naming.Context

getNameParser

public javax.naming.NameParser getNameParser(javax.naming.Name name)
                                      throws javax.naming.NamingException
Deprecated. 
Return the Name Parser
Specified by:
getNameParser in interface javax.naming.Context

getNameParser

public javax.naming.NameParser getNameParser(java.lang.String name)
                                      throws javax.naming.NamingException
Deprecated. 
Return the Name Parser
Specified by:
getNameParser in interface javax.naming.Context

composeName

public java.lang.String composeName(java.lang.String name,
                                    java.lang.String prefix)
                             throws javax.naming.NamingException
Deprecated. 
Return the context fullname
Specified by:
composeName in interface javax.naming.Context

composeName

public javax.naming.Name composeName(javax.naming.Name name,
                                     javax.naming.Name prefix)
                              throws javax.naming.NamingException
Deprecated. 
Return the context fullname
Specified by:
composeName in interface javax.naming.Context

close

public void close()
Deprecated. 
Close the current Naming Context
Specified by:
close in interface javax.naming.Context

bind

public void bind(java.lang.String name,
                 java.lang.Object obj)
          throws javax.naming.NamingException
Deprecated. 
This method is used to bind an object.
Specified by:
bind in interface javax.naming.Context

bind

public void bind(javax.naming.Name name,
                 java.lang.Object obj)
          throws javax.naming.NamingException
Deprecated. 
This method is used to bind an object.
Specified by:
bind in interface javax.naming.Context

rebind

public void rebind(java.lang.String name,
                   java.lang.Object obj)
            throws javax.naming.NamingException
Deprecated. 
This method is used to bind an object.
Specified by:
rebind in interface javax.naming.Context

rebind

public void rebind(javax.naming.Name name,
                   java.lang.Object obj)
            throws javax.naming.NamingException
Deprecated. 
This method is used to bind an object.
Specified by:
rebind in interface javax.naming.Context

createSubcontext

public javax.naming.Context createSubcontext(java.lang.String name)
                                      throws javax.naming.NamingException
Deprecated. 
Create a new Context
Specified by:
createSubcontext in interface javax.naming.Context

createSubcontext

public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
Deprecated. 
Create a new Context
Specified by:
createSubcontext in interface javax.naming.Context

destroySubcontext

public void destroySubcontext(java.lang.String name)
                       throws javax.naming.NamingException
Deprecated. 
Delete a sub context
Specified by:
destroySubcontext in interface javax.naming.Context

destroySubcontext

public void destroySubcontext(javax.naming.Name name)
                       throws javax.naming.NamingException
Deprecated. 
Delete a sub context
Specified by:
destroySubcontext in interface javax.naming.Context

unbind

public void unbind(java.lang.String name)
            throws javax.naming.NamingException
Deprecated. 
Unbind a name
Specified by:
unbind in interface javax.naming.Context

unbind

public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
Deprecated. 
Unbind a entry
Specified by:
unbind in interface javax.naming.Context

lookup

public java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException
Deprecated. 
Look up an object
Specified by:
lookup in interface javax.naming.Context

lookup

public java.lang.Object lookup(javax.naming.Name name)
                        throws javax.naming.NamingException
Deprecated. 
Look up an object
Specified by:
lookup in interface javax.naming.Context

lookupLink

public java.lang.Object lookupLink(java.lang.String name)
                            throws javax.naming.NamingException
Deprecated. 
Look up an object
Specified by:
lookupLink in interface javax.naming.Context

lookupLink

public java.lang.Object lookupLink(javax.naming.Name name)
                            throws javax.naming.NamingException
Deprecated. 
Look up an object
Specified by:
lookupLink in interface javax.naming.Context

rename

public void rename(javax.naming.Name oldName,
                   javax.naming.Name newName)
            throws javax.naming.NamingException
Deprecated. 
Rename an object
Specified by:
rename in interface javax.naming.Context

rename

public void rename(java.lang.String oldName,
                   java.lang.String newName)
            throws javax.naming.NamingException
Deprecated. 
Rename an object
Specified by:
rename in interface javax.naming.Context

list

public javax.naming.NamingEnumeration list(java.lang.String name)
                                    throws javax.naming.NamingException
Deprecated. 
Return an enumeration
Specified by:
list in interface javax.naming.Context

list

public javax.naming.NamingEnumeration list(javax.naming.Name name)
                                    throws javax.naming.NamingException
Deprecated. 
Return an enumeration
Specified by:
list in interface javax.naming.Context

listBindings

public javax.naming.NamingEnumeration listBindings(java.lang.String name)
                                            throws javax.naming.NamingException
Deprecated. 
Return an enumeration
Specified by:
listBindings in interface javax.naming.Context

listBindings

public javax.naming.NamingEnumeration listBindings(javax.naming.Name name)
                                            throws javax.naming.NamingException
Deprecated. 
Return an enumeration
Specified by:
listBindings in interface javax.naming.Context