|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosNaming.NamingContextExtPOA
org.openorb.ins.NamingContextExImpl
public class NamingContextExImpl
This class is the implementation of the NamingContextExt.
Method Summary | |
---|---|
void |
bind_context(org.omg.CosNaming.NameComponent[] n,
org.omg.CosNaming.NamingContext nc)
Names an object that is a naming context. |
org.omg.CosNaming.NamingContext |
bind_new_context(org.omg.CosNaming.NameComponent[] n)
This operation creates a new context and binds it to the name supplied as an argument. |
void |
bind(org.omg.CosNaming.NameComponent[] n,
org.omg.CORBA.Object obj)
Creates a binding of a name and an object in the naming context. |
void |
destroy()
The destroy operation deletes a naming context. |
static boolean |
is_shutdown()
|
void |
list(int how_many,
org.omg.CosNaming.BindingListHolder bl,
org.omg.CosNaming.BindingIteratorHolder bi)
The list operation allows a client to iterate through a set of bindings in a naming context. |
org.omg.CosNaming.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(org.omg.CosNaming.NameComponent[] n,
org.omg.CosNaming.NamingContext nc)
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(org.omg.CosNaming.NameComponent[] n,
org.omg.CORBA.Object obj)
Creates a binding of a name and an object in the naming context even if the name is already bound in the context. |
org.omg.CORBA.Object |
resolve_str(java.lang.String n)
This is a convenience operation that performs a resolve in the same manner as NamingContext::resolve. |
org.omg.CORBA.Object |
resolve(org.omg.CosNaming.NameComponent[] n)
Names can have multiple components; therefore, name resolution can traverse multiple contexts. |
static void |
set_shutdown(boolean shutdown)
|
org.omg.CosNaming.NameComponent[] |
to_name(java.lang.String sn)
This operation accepts a stringified name and returns a Name. |
java.lang.String |
to_string(org.omg.CosNaming.NameComponent[] n)
This operation accepts Name and returns a stringified name. |
java.lang.String |
to_url(java.lang.String addr,
java.lang.String sn)
This operation takes an URL address and performs any escapes necessary on the stringified name and returns a fully formed URL string. |
void |
unbind(org.omg.CosNaming.NameComponent[] n)
The unbind operation removes a name binding from a context. |
Methods inherited from class org.omg.CosNaming.NamingContextExtPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void bind(org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
n
- The compound name for the object to bindobj
- The object to bind
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place other
restrictions on names.)
org.omg.CosNaming.NamingContextPackage.AlreadyBound
- Indicates an object is already bound to
the specified name. Only one object can be bound
to a particular name in a context. The bind and
the bind_context operations raise the AlreadyBound
exception if the name is bound in the context; the
rebind and rebind_context operations unbind the
name and rebind the name to the object passed as
an argument.public void rebind(org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- The compound name for the object to rebindobj
- The object to rebind
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may place other
restrictions on names.)public void bind_context(org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
n
- The compound name for the naming context to bindnc
- The naming context to bind
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place other
restrictions on names.)
org.omg.CosNaming.NamingContextPackage.AlreadyBound
- Indicates an object is already bound to
the specified name. Only one object can be bound
to a particular name in a context. The bind and
the bind_context operations raise the AlreadyBound
exception if the name is bound in the context; the
rebind and rebind_context operations unbind the
name and rebind the name to the object passed as
an argument.public void rebind_context(org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- The compound name for the naming context to rebindnc
- The naming context to rebind
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place
other restrictions on names.)public org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- The compound name for the object to resolve
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place
other restrictions on names.)public void unbind(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- The compound name for the node to unbind ( an object or
a naming context )
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place
other restrictions on names.)public org.omg.CosNaming.NamingContext new_context()
public org.omg.CosNaming.NamingContext bind_new_context(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.AlreadyBound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- The compound name for the naming context to create and to bind.
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has
given up for some reason. The client, however, may
be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of
length 0 is invalid; implementations may place
other restrictions on names.)
org.omg.CosNaming.NamingContextPackage.AlreadyBound
- Indicates an object is already bound to
the specified name. Only one object can be bound
to a particular name in a context.public void destroy() throws org.omg.CosNaming.NamingContextPackage.NotEmpty
org.omg.CosNaming.NamingContextPackage.NotEmpty
- If the naming context contains bindings, the
NotEmpty exception is raised.public void list(int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
how_many
- Maximum number of elements into the binding list.bl
- This parameter returns a list that contains all node of
the naming contextbi
- This parameter returns a binding iterator to iterate in
the list.public java.lang.String to_string(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.InvalidName
n
- the name to stringified.
org.omg.CosNaming.NamingContextPackage.InvalidName
- This exception is raised if the name is
invalid.public org.omg.CosNaming.NameComponent[] to_name(java.lang.String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName
sn
- the stringified name to transform to a name.
org.omg.CosNaming.NamingContextPackage.InvalidName
- This exception is raised if the
stringified name is syntactically malformed or
violates an implementation limit.public java.lang.String to_url(java.lang.String addr, java.lang.String sn) throws org.omg.CosNaming.NamingContextExtPackage.InvalidAddress, org.omg.CosNaming.NamingContextPackage.InvalidName
addr
- the address ( for example myhost.xyz.com )sn
- the stringified name to add to the URL
org.omg.CosNaming.NamingContextExtPackage.InvalidAddress
- This exception is raises if a address
is invalid ( it means that the address does not
respect the address format ).
org.omg.CosNaming.NamingContextPackage.InvalidName
- This exception is raised if the
stringified name is syntactically malformed or
violates an implementation limit.public org.omg.CORBA.Object resolve_str(java.lang.String n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
n
- the stringified name of the object ( or naming context ) to resolve
org.omg.CosNaming.NamingContextPackage.NotFound
- Indicates the name does not identify a binding.
org.omg.CosNaming.NamingContextPackage.CannotProceed
- Indicates that the implementation has given up for some reason. The
client, however, may be able to continue the operation at the returned
naming context.
org.omg.CosNaming.NamingContextPackage.InvalidName
- Indicates the name is invalid. (A name of length 0 is invalid;
implementations may place other restrictions on names.)public static boolean is_shutdown()
public static void set_shutdown(boolean shutdown)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |