public interface NamingContextExtOperations extends NamingContextOperations
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.
String to_string(NameComponent[] n) throws InvalidName
This operation creates a stringified name from the array of Name components.
n
- Name of the object
org.omg.CosNaming.NamingContextExtPackage.InvalidName
- Indicates the name does not identify a binding.
InvalidName
NameComponent[] to_name(String sn) throws InvalidName
This operation converts a Stringified Name into an equivalent array of Name Components.
sn
- Stringified Name of the object
org.omg.CosNaming.NamingContextExtPackage.InvalidName
- Indicates the name does not identify a binding.
InvalidName
String to_url(String addr, String sn) throws InvalidAddress, InvalidName
This operation creates a URL based "iiopname://" format name from the Stringified Name of the object.
addr
- internet based address of the host machine where Name Service is running
sn
- Stringified Name of the object
org.omg.CosNaming.NamingContextExtPackage.InvalidName
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.InvalidAddress
- Indicates the internet based address of the host machine is incorrect
InvalidAddress
InvalidName
Object resolve_str(String sn) throws NotFound, CannotProceed, InvalidName
This operation resolves the Stringified name into the object reference.
sn
- Stringified Name of the object
NotFound
- Indicates there is no object reference for the given name.
CannotProceed
- Indicates that the given compound name is incorrect
org.omg.CosNaming.NamingContextExtPackage.InvalidName
- Indicates the name does not identify a binding.
InvalidName
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.