Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jnp.server
Class NamingServer  view NamingServer download NamingServer.java

java.lang.Object
  extended byorg.jnp.server.NamingServer
All Implemented Interfaces:
org.jnp.interfaces.Naming, java.rmi.Remote, java.io.Serializable

public class NamingServer
extends java.lang.Object
implements org.jnp.interfaces.Naming, java.io.Serializable

Version:
$Revision: 1.9 $

Field Summary
protected  NamingServer parent
           
protected  org.jnp.interfaces.NamingParser parser
           
protected  javax.naming.Name prefix
           
protected  java.util.Hashtable table
           
 
Constructor Summary
NamingServer()
           
NamingServer(javax.naming.Name prefix, NamingServer 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)
           
private  javax.naming.Binding getBinding(javax.naming.Name key)
           
private  javax.naming.Binding getBinding(java.lang.String key)
           
private  java.lang.Object getObject(javax.naming.Name key)
           
private  NamingServer getParent()
           
 org.jnp.interfaces.Naming 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)
           
private  void removeBinding(javax.naming.Name name)
           
private  void setBinding(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 org.jnp.interfaces.NamingParser parser

parent

protected NamingServer parent
Constructor Detail

NamingServer

public NamingServer()
             throws javax.naming.NamingException

NamingServer

public NamingServer(javax.naming.Name prefix,
                    NamingServer 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 org.jnp.interfaces.Naming

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 org.jnp.interfaces.Naming

unbind

public void unbind(javax.naming.Name name)
            throws javax.naming.NamingException
Specified by:
unbind in interface org.jnp.interfaces.Naming

lookup

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

list

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

listBindings

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

createSubcontext

public javax.naming.Context createSubcontext(javax.naming.Name name)
                                      throws javax.naming.NamingException
Specified by:
createSubcontext in interface org.jnp.interfaces.Naming

getRoot

public org.jnp.interfaces.Naming getRoot()

setBinding

private void setBinding(javax.naming.Name name,
                        java.lang.Object obj,
                        java.lang.String className)

getBinding

private javax.naming.Binding getBinding(java.lang.String key)
                                 throws javax.naming.NameNotFoundException

getBinding

private javax.naming.Binding getBinding(javax.naming.Name key)
                                 throws javax.naming.NameNotFoundException

getObject

private java.lang.Object getObject(javax.naming.Name key)
                            throws javax.naming.NameNotFoundException

removeBinding

private void removeBinding(javax.naming.Name name)

getParent

private NamingServer getParent()