All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orbasec.corba.NameServer

java.lang.Object
   |
   +----orbasec.corba.NameServer

public class NameServer
extends Object
This class is a client processor for the CosNaming service. It uses a simple string with separator characters to separate the indiviual context names.

Indicating a separator character of '/'. Such as "directory/subdirectory1/subsub/directory/file"


Constructor Index

 o NameServer(ORB)
 o NameServer(ORB, String)
This constructor stipulates the separators to use for the individual context names.

Method Index

 o bind(String, Object)
Binds a complex name, where separators indicate divisions in naming contexts.
 o bindSimple(String, Object)
Binds a string to a name component.
 o force_bind(String, Object)
Force a bind, creating naming contexts along the way if needed.
 o rebind(String, Object)
Rebind to an existing name.
 o rebindSimple(String, Object)
Rebind a string to a name component.
 o resolve(String)
Resolve's a complex name, one where separators divide naming contexts.
 o resolveSimple(String)
Resolves a name that is a single Name component.
 o unbind(String)
Unbind a complex name from the last naming context.
 o unbindSimple(String)
Unbinds a name component.

Constructors

 o NameServer
 public NameServer(ORB orb,
                   String seps)
This constructor stipulates the separators to use for the individual context names.

 o NameServer
 public NameServer(ORB orb)

Methods

 o resolveSimple
 public Object resolveSimple(String name) throws InvalidName, NotFound, CannotProceed
Resolves a name that is a single Name component.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
 o bindSimple
 public void bindSimple(String name,
                        Object obj) throws InvalidName, NotFound, CannotProceed, AlreadyBound
Binds a string to a name component.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
Throws: AlreadyBound
if the name is already bound
 o rebindSimple
 public void rebindSimple(String name,
                          Object obj) throws InvalidName, NotFound, CannotProceed
Rebind a string to a name component.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
 o unbindSimple
 public void unbindSimple(String name) throws InvalidName, NotFound, CannotProceed
Unbinds a name component.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
 o resolve
 public Object resolve(String name) throws InvalidName, NotFound, CannotProceed
Resolve's a complex name, one where separators divide naming contexts.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
 o bind
 public void bind(String name,
                  Object obj) throws InvalidName, NotFound, CannotProceed, AlreadyBound
Binds a complex name, where separators indicate divisions in naming contexts. All intermediate naming contexts must exist and the last component must not. Use rebind if the last componet exists. Use force_bind to create and bind any missing naming contexts along the way.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
Throws: AlreadyBound
if the name is already bound
See Also:
rebind, force_bind
 o force_bind
 public void force_bind(String name,
                        Object obj) throws InvalidName, NotFound, CannotProceed, AlreadyBound
Force a bind, creating naming contexts along the way if needed.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
Throws: AlreadyBound
if the name is already bound
 o rebind
 public void rebind(String name,
                    Object obj) throws InvalidName, NotFound, CannotProceed
Rebind to an existing name. This call does not create naming contexts along the way.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed
 o unbind
 public void unbind(String name) throws InvalidName, NotFound, CannotProceed
Unbind a complex name from the last naming context.

Throws: InvalidName
if the name is invalid
Throws: NotFound
if the name is not found
Throws: CannotProceed
if the NameService cannot proceed

All Packages  Class Hierarchy  This Package  Previous  Next  Index