FileDocCategorySizeDatePackage
NamingContextExtOperations.javaAPI DocJava SE 6 API3191Tue Jun 10 01:33:22 BST 2008org.omg.CosNaming

NamingContextExtOperations

public interface NamingContextExtOperations implements org.omg.CosNaming.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.

See CORBA COS Naming Specification.

Fields Summary
Constructors Summary
Methods Summary
public org.omg.CORBA.Objectresolve_str(java.lang.String sn)
This operation resolves the Stringified name into the object reference.

param
sn Stringified Name of the object

exception
org.omg.CosNaming.NamingContextPackage.NotFound Indicates there is no object reference for the given name.

exception
org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the given compound name is incorrect

exception
org.omg.CosNaming.NamingContextExtPackage.InvalidName Indicates the name does not identify a binding.

public org.omg.CosNaming.NameComponent[]to_name(java.lang.String sn)
This operation converts a Stringified Name into an equivalent array of Name Components.

param
sn Stringified Name of the object

exception
org.omg.CosNaming.NamingContextExtPackage.InvalidName Indicates the name does not identify a binding.

public java.lang.Stringto_string(org.omg.CosNaming.NameComponent[] n)
This operation creates a stringified name from the array of Name components.

param
n Name of the object

exception
org.omg.CosNaming.NamingContextExtPackage.InvalidName Indicates the name does not identify a binding.

public java.lang.Stringto_url(java.lang.String addr, java.lang.String sn)
This operation creates a URL based "iiopname://" format name from the Stringified Name of the object.

param
addr internet based address of the host machine where Name Service is running

param
sn Stringified Name of the object

exception
org.omg.CosNaming.NamingContextExtPackage.InvalidName Indicates the name does not identify a binding.

exception
org.omg.CosNaming.NamingContextPackage.InvalidAddress Indicates the internet based address of the host machine is incorrect