org.jnp.server
Class NamingServer

java.lang.Object
  extended byorg.jnp.server.NamingServer
All Implemented Interfaces:
Naming (src) , java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
TreeHead (src)

public class NamingServer
extends java.lang.Object
implements Naming (src) , java.io.Serializable

The JNDI naming server implementation class.

See Also:
Serialized Form

Field Summary
protected  NamingServer (src) parent
           
protected  NamingParser (src) parser
           
protected  javax.naming.Name prefix
           
protected  java.util.Hashtable table
           
 
Constructor Summary
NamingServer()
           
NamingServer(javax.naming.Name prefix, NamingServer (src)  parent)
           
 
Method Summary
 void bind(javax.naming.Name name, java.lang.Object obj, java.lang.String className)
           
 javax.naming.Context createSubcontext(javax.naming.Name name)
           
 Naming (src) getRoot()
           
 java.util.Collection list(javax.naming.Name name)
           
 java.util.Collection listBindings(javax.naming.Name name)
           
 java.lang.Object lookup(javax.naming.Name name)
           
 void rebind(javax.naming.Name name, java.lang.Object obj, java.lang.String className)
           
 void unbind(javax.naming.Name name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected java.util.Hashtable table

prefix

protected javax.naming.Name prefix

parser

protected NamingParser (src)  parser

parent

protected NamingServer (src)  parent
Constructor Detail

NamingServer

public NamingServer()
             throws javax.naming.NamingException

NamingServer

public NamingServer(javax.naming.Name prefix,
                    NamingServer (src)  parent)
             throws javax.naming.NamingException
Method Detail

bind

public void bind(javax.naming.Name name,
                 java.lang.Object obj,
                 java.lang.String className)
          throws javax.naming.NamingException
Specified by:
bind in interface Naming (src)
Throws:
javax.naming.NamingException

rebind

public void rebind(javax.naming.Name name,
                   java.lang.Object obj,
                   java.lang.String className)
            throws javax.naming.NamingException
Specified by:
rebind in interface Naming (src)
Throws:
javax.naming.NamingException

unbind

public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
Specified by:
unbind in interface Naming (src)
Throws:
javax.naming.NamingException

lookup

public java.lang.Object lookup(javax.naming.Name name)
                        throws javax.naming.NamingException
Specified by:
lookup in interface Naming (src)
Throws:
javax.naming.NamingException

list

public java.util.Collection list(javax.naming.Name name)
                          throws javax.naming.NamingException
Specified by:
list in interface Naming (src)
Throws:
javax.naming.NamingException

listBindings

public java.util.Collection listBindings(javax.naming.Name name)
                                  throws javax.naming.NamingException
Specified by:
listBindings in interface Naming (src)
Throws:
javax.naming.NamingException

createSubcontext

public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
Specified by:
createSubcontext in interface Naming (src)
Throws:
javax.naming.NamingException

getRoot

public Naming (src)  getRoot()