Package org.omg.CosNaming
Interface NamingContextExtOperations
- All Superinterfaces:
NamingContextOperations
- All Known Subinterfaces:
NamingContextExt
- All Known Implementing Classes:
_NamingContextExtStub
,NamingContextExtPOA
,NamingContextExtPOATie
,NamingContextImpl
,TransientNamingContext
NamingContextExt
is the extension of NamingContext
which
contains a set of name bindings in which each name is unique and is
part of Interoperable Naming Service.
Different names can be bound to an object in the same or different
contexts at the same time. Using NamingContextExt, you can use
URL-based names to bind and resolve. -
Method Summary
Modifier and TypeMethodDescriptionresolve_str
(String sn) This operation resolves the Stringified name into the object reference.This operation converts a Stringified Name into an equivalent array of Name Components.to_string
(NameComponent[] n) This operation creates a stringified name from the array of Name components.This operation creates a URL based "iiopname://" format name from the Stringified Name of the object.Methods inherited from interface org.omg.CosNaming.NamingContextOperations
bind, bind_context, bind_new_context, destroy, list, new_context, rebind, rebind_context, resolve, unbind
-
Method Details
-
to_string
This operation creates a stringified name from the array of Name components.- Parameters:
n
- Name of the object- Returns:
- the name as a String
- Throws:
InvalidName
- Indicates the name does not identify a binding.
-
to_name
This operation converts a Stringified Name into an equivalent array of Name Components.- Parameters:
sn
- Stringified Name of the object- Returns:
- the resulting NameComponent araray
- Throws:
InvalidName
- Indicates the name does not identify a binding.
-
to_url
This operation creates a URL based "iiopname://" format name from the Stringified Name of the object.- Parameters:
addr
- internet based address of the host machine where Name Service is runningsn
- Stringified Name of the object- Returns:
- the resulting URL
- Throws:
InvalidName
- Indicates the name does not identify a binding.InvalidAddress
- Indicates the internet based address of the host machine is incorrect
-
resolve_str
This operation resolves the Stringified name into the object reference.- Parameters:
sn
- Stringified Name of the object- Returns:
- the resulting Object
- Throws:
NotFound
- Indicates there is no object reference for the given name.CannotProceed
- Indicates that the given compound name is incorrectInvalidName
- Indicates the name does not identify a binding.
-