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"
-
NameServer(ORB)
-
-
NameServer(ORB, String)
- This constructor stipulates the separators to use
for the individual context names.
-
bind(String, Object)
- Binds a complex name, where separators indicate
divisions in naming contexts.
-
bindSimple(String, Object)
- Binds a string to a name component.
-
force_bind(String, Object)
- Force a bind, creating naming contexts along the way
if needed.
-
rebind(String, Object)
- Rebind to an existing name.
-
rebindSimple(String, Object)
- Rebind a string to a name component.
-
resolve(String)
- Resolve's a complex name, one where separators
divide naming contexts.
-
resolveSimple(String)
- Resolves a name that is a single Name component.
-
unbind(String)
- Unbind a complex name from the last naming context.
-
unbindSimple(String)
- Unbinds a name component.
NameServer
public NameServer(ORB orb,
String seps)
- This constructor stipulates the separators to use
for the individual context names.
NameServer
public NameServer(ORB orb)
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
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
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
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
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
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
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
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
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