|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--org.omg.CosNaming._NamingContextExtStub
This interface has been introduced for the Interoperable Name Service. This interface extends NamingContext and provides several new methods to manage CORBA URL.
Constructor Summary | |
_NamingContextExtStub()
|
Method Summary | |
java.lang.String[] |
_ids()
|
void |
bind_context(NameComponent[] n,
NamingContext nc)
Operation bind_context |
NamingContext |
bind_new_context(NameComponent[] n)
Operation bind_new_context |
void |
bind(NameComponent[] n,
Object obj)
Operation bind |
void |
destroy()
Operation destroy |
void |
list(int how_many,
BindingListHolder bl,
BindingIteratorHolder bi)
Operation list |
NamingContext |
new_context()
Operation new_context |
void |
rebind_context(NameComponent[] n,
NamingContext nc)
Operation rebind_context |
void |
rebind(NameComponent[] n,
Object obj)
Operation rebind |
Object |
resolve_str(java.lang.String n)
Operation resolve_str |
Object |
resolve(NameComponent[] n)
Operation resolve |
NameComponent[] |
to_name(java.lang.String sn)
Operation to_name |
java.lang.String |
to_string(NameComponent[] n)
Operation to_string |
java.lang.String |
to_url(java.lang.String addr,
java.lang.String sn)
Operation to_url |
void |
unbind(NameComponent[] n)
Operation unbind |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Constructor Detail |
public _NamingContextExtStub()
Method Detail |
public java.lang.String[] _ids()
_ids
in class ObjectImpl
public java.lang.String to_string(NameComponent[] n) throws InvalidName
to_string
in interface NamingContextExtOperations
org.omg.CosNaming.NamingContextExtOperations
n
- the name to stringified.InvalidName
- This exception is raised if the name is
invalid.public NameComponent[] to_name(java.lang.String sn) throws InvalidName
to_name
in interface NamingContextExtOperations
org.omg.CosNaming.NamingContextExtOperations
sn
- the stringified name to transform to a name.InvalideName
- 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 InvalidAddress, InvalidName
to_url
in interface NamingContextExtOperations
org.omg.CosNaming.NamingContextExtOperations
addr
- the address ( for example myhost.xyz.com )sn
- the stringified name to add to the URLInvalidAddress
- This exception is raises if a address
is invalid ( it means that the address does not
respect the address format ).InvalidName
- This exception is raised if the
stringified name is syntactically malformed or
violates an implementation limit.public Object resolve_str(java.lang.String n) throws NotFound, CannotProceed, InvalidName
resolve_str
in interface NamingContextExtOperations
org.omg.CosNaming.NamingContextExtOperations
n
- the stringified name of the object (or naming context)
to resolveNotFound
- Indicates the name does not identify a binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)public void bind(NameComponent[] n, Object obj) throws NotFound, CannotProceed, InvalidName, AlreadyBound
bind
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the object to bindobj
- The object to bindNotFound
- Indicates the name does not identify a binding.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.Indicates
- the name is invalid. (A name of length 0
is invalid; implementations may place other
restrictions on names.)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(NameComponent[] n, Object obj) throws NotFound, CannotProceed, InvalidName
rebind
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the object to rebindobj
- The object to rebindNotFound
- Indicates the name does not identify a binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)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 bind_context(NameComponent[] n, NamingContext nc) throws NotFound, CannotProceed, InvalidName, AlreadyBound
bind_context
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the naming context to bindobj
- The naming context to bindNotFound
- Indicates the name does not identify a binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)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(NameComponent[] n, NamingContext nc) throws NotFound, CannotProceed, InvalidName
rebind_context
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the naming context to rebindobj
- The naming context to rebindNotFound
- Indicates the name does not identify a
binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)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 Object resolve(NameComponent[] n) throws NotFound, CannotProceed, InvalidName
resolve
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the object to resolve.NotFound
- Indicates the name does not identify a binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)public void unbind(NameComponent[] n) throws NotFound, CannotProceed, InvalidName
unbind
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the node to unbind ( an object
or a naming context )NotFound
- Indicates the name does not identify a binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)public NamingContext new_context()
new_context
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
public NamingContext bind_new_context(NameComponent[] n) throws NotFound, AlreadyBound, CannotProceed, InvalidName
bind_new_context
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
n
- The compound name for the naming context to create and
to bind.NotFound
- Indicates the name does not identify a
binding.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.InvalidName
- Indicates the name is invalid. (A name
of length 0 is invalid; implementations may
place other restrictions on names.)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 NotEmpty
destroy
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
NotEmpty
- If the naming context contains bindings,
the NotEmpty exception is raised.public void list(int how_many, BindingListHolder bl, BindingIteratorHolder bi)
list
in interface NamingContextOperations
org.omg.CosNaming.NamingContextOperations
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |