org.omg.CosNaming
Class _NamingContextExtStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CosNaming._NamingContextStub
          extended by org.omg.CosNaming._NamingContextExtStub
All Implemented Interfaces:
Serializable, Object, IDLEntity, NamingContext, NamingContextExt, NamingContextExtOperations, NamingContextOperations

public class _NamingContextExtStub
extends _NamingContextStub
implements NamingContextExt

The extended naming context stub (proxy), used on the client side. The most of the NamingContextExt methods contain the code for remote invocaton. However as remote invocation is potencially an expensive step, some trivial methods, not requiring access to the naming database, are handled locally (see the method descriptions for details).

See Also:
Serialized Form

Constructor Summary
_NamingContextExtStub()
          Create the naming context stub.
 
Method Summary
 String[] _ids()
          Return the array of repository ids for this object.
 Object resolve_str(String a_name_string)
          Resolve the name, represented in the form of the string.
 NameComponent[] to_name(String a_name_string)
          Converts the string name representation into the array name representation.
 String to_string(NameComponent[] a_name)
          Convert the name array representation to the name string representation.
 String to_url(String an_address, String a_name_string)
          
 
Methods inherited from class org.omg.CosNaming._NamingContextStub
bind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbind
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CosNaming.NamingContext
bind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbind
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

_NamingContextExtStub

public _NamingContextExtStub()
Create the naming context stub.

Method Detail

_ids

public String[] _ids()
Return the array of repository ids for this object. This stub can be the base of the two CORBA objects, so it has two repository ids, for NamingContext and for NamingContextExt.

Overrides:
_ids in class _NamingContextStub

resolve_str

public Object resolve_str(String a_name_string)
                   throws NotFound,
                          CannotProceed,
                          InvalidName
Resolve the name, represented in the form of the string. The components of the composite name are separated by slash ('/').

Specified by:
resolve_str in interface NamingContextExtOperations
Parameters:
a_name_string - the name to resolve.
Returns:
the object, referenced by the name.
Throws:
NotFound
CannotProceed
InvalidName

to_name

public NameComponent[] to_name(String a_name_string)
                        throws InvalidName
Converts the string name representation into the array name representation. This method is handled locally.

Specified by:
to_name in interface NamingContextExtOperations
Parameters:
a_name_string - the stringified form of the name.
Returns:
the component array form of the name.
Throws:
InvalidName - if the name is invalid.

to_string

public String to_string(NameComponent[] a_name)
                 throws InvalidName
Convert the name array representation to the name string representation. This method is handled locally.

Specified by:
to_string in interface NamingContextExtOperations
Parameters:
a_name - the name, as an array of components.
Returns:
the same name as a string.
Throws:
InvalidName - if the name is invalid.

to_url

public String to_url(String an_address,
                     String a_name_string)
              throws InvalidAddress,
                     InvalidName

Specified by:
to_url in interface NamingContextExtOperations
Throws:
InvalidAddress
InvalidName