VisiBroker for Java

org.omg.CosNaming
Interface NamingContextExtOperations

All Superinterfaces:
NamingContextOperations
All Known Subinterfaces:
NamingContextExt, NamingContextExtExtended, NamingContextExtExtendedOperations
All Known Implementing Classes:
_NamingContextExtStub, NamingContextExtPOA

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.

See CORBA COS Naming Specification.


Method Summary
 Object resolve_str(java.lang.String sn)
          This operation resolves the Stringified name into the object reference.
 NameComponent[] to_name(java.lang.String sn)
          This operation converts a Stringified Name into an equivalent array of Name Components.
 java.lang.String to_string(NameComponent[] n)
          This operation creates a stringified name from the array of Name components.
 java.lang.String to_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.
 
Methods inherited from interface org.omg.CosNaming.NamingContextOperations
bind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbind
 

Method Detail

to_string

java.lang.String to_string(NameComponent[] n)
                           throws InvalidName
This operation creates a stringified name from the array of Name components.

Parameters:
n - Name of the object

Throws:
org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

InvalidName

to_name

NameComponent[] to_name(java.lang.String sn)
                        throws InvalidName
This operation converts a Stringified Name into an equivalent array of Name Components.

Parameters:
sn - Stringified Name of the object

Throws:
org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

InvalidName

to_url

java.lang.String to_url(java.lang.String addr,
                        java.lang.String sn)
                        throws InvalidAddress,
                               InvalidName
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 running

sn - Stringified Name of the object

Throws:
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

resolve_str

Object resolve_str(java.lang.String sn)
                   throws NotFound,
                          CannotProceed,
                          InvalidName
This operation resolves the Stringified name into the object reference.

Parameters:
sn - Stringified Name of the object

Throws:
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

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online