org.jnp.client
Class Main

java.lang.Object
  extended byorg.jnp.client.Main
All Implemented Interfaces:
java.lang.Runnable

public class Main
extends java.lang.Object
implements java.lang.Runnable

This is a test client of the NamingServer. It calls the server in various ways to test the functionality.

The JNDI configuration is provided in the jndi.properties file.

See Also:
NamingContext (src)

Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          Start the test
 void printName(java.lang.String name)
           
 void run()
          Run the tests
 void showTree(javax.naming.Context ctx)
          Show a JNDI context tree on system out.
 void showTree(javax.naming.Context ctx, int maxDepth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Start the test

Parameters:
args -
Throws:
java.lang.Exception

printName

public void printName(java.lang.String name)
               throws javax.naming.NamingException
Throws:
javax.naming.NamingException

showTree

public void showTree(javax.naming.Context ctx)
              throws javax.naming.NamingException
Show a JNDI context tree on system out.

Parameters:
ctx -
Throws:
javax.naming.NamingException

showTree

public void showTree(javax.naming.Context ctx,
                     int maxDepth)
              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

run

public void run()
Run the tests

Specified by:
run in interface java.lang.Runnable