|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
org.omg.CORBA.portable.ObjectImpl
![]()
![]()
![]()
org.omg.CosNaming._NamingContextExtStub
, Object
, IDLEntity
, NamingContext
, NamingContextExt
, NamingContextExtOperations
, NamingContextOperations

public class _NamingContextExtStub


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.
| Constructor Summary | |
|---|---|
_NamingContextExtStub
|
|
| Method Summary | |
|---|---|
String |
_ids
Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. |
void |
bind_context
Names an object that is a naming context. |
NamingContext |
bind_new_context
This operation creates a new context and binds it to the name supplied as an argument. |
void |
bind
Creates a binding of a name and an object in the naming context. |
void |
destroy
The destroy operation deletes a naming context. |
void |
list
The list operation allows a client to iterate through a set of bindings in a naming context. |
NamingContext |
new_context
This operation returns a naming context implemented by the same naming server as the context on which the operation was invoked. |
void |
rebind_context
Creates a binding of a name and a naming context in the naming context even if the name is already bound in the context. |
void |
rebind
Creates a binding of a name and an object in the naming context even if the name is already bound in the context. |
Object |
resolve_str
This operation resolves the Stringified name into the object reference. |
Object |
resolve
The resolve operation is the process of retrieving an object bound to a name in a given context. |
NameComponent |
to_name
This operation converts a Stringified Name into an equivalent array of Name Components. |
String |
to_string
This operation creates a stringified name from the array of Name components. |
String |
to_url
This operation creates a URL based "iiopname://" format name from the Stringified Name of the object. |
void |
unbind
The unbind operation removes a name binding from a context. |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl ![]() |
|---|
_create_request |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
Methods inherited from interface org.omg.CORBA.Object ![]() |
|---|
_create_request |
| Constructor Detail |
|---|

public _NamingContextExtStub()
| Method Detail |
|---|

public String![]()
![]()
to_string(NameComponent
![]()
![]()
[] n) throws InvalidName
![]()
![]()
to_string

in interface NamingContextExtOperations

n - Name of the object
org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.
InvalidName


public NameComponent![]()
![]()
[] to_name(String
![]()
![]()
sn) throws InvalidName
![]()
![]()
to_name

in interface NamingContextExtOperations

sn - Stringified Name of the object
org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.
InvalidName


public String![]()
![]()
to_url(String
![]()
![]()
addr, String
![]()
![]()
sn) throws InvalidAddress
![]()
![]()
, InvalidName
![]()
![]()
to_url

in interface NamingContextExtOperations

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


public Object![]()
![]()
resolve_str(String
![]()
![]()
sn) throws NotFound
![]()
![]()
, CannotProceed
![]()
![]()
, InvalidName
![]()
![]()
resolve_str

in interface NamingContextExtOperations

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


public void bind(NameComponent![]()
![]()
[] n, Object
![]()
![]()
obj) throws NotFound
![]()
![]()
, CannotProceed
![]()
![]()
, InvalidName
![]()
![]()
, AlreadyBound
![]()
![]()
bind

in interface NamingContextOperations

n - Name of the object obj - The Object to bind with the given name
NotFound 