org.omg.CosNaming
Class NamingContextExtPOA

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.omg.PortableServer.Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant 
      extended by org.omg.CosNaming.NamingContextExtPOA
All Implemented Interfaces:
InvokeHandler sample code for org.omg.CORBA.portable.InvokeHandler definition code for org.omg.CORBA.portable.InvokeHandler , NamingContextExtOperations sample code for org.omg.CosNaming.NamingContextExtOperations definition code for org.omg.CosNaming.NamingContextExtOperations , NamingContextOperations sample code for org.omg.CosNaming.NamingContextOperations definition code for org.omg.CosNaming.NamingContextOperations

public abstract class NamingContextExtPOA
extends Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant
implements NamingContextExtOperations sample code for org.omg.CosNaming.NamingContextExtOperations definition code for org.omg.CosNaming.NamingContextExtOperations , InvokeHandler sample code for org.omg.CORBA.portable.InvokeHandler definition code for org.omg.CORBA.portable.InvokeHandler

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
NamingContextExtPOA sample code for org.omg.CosNaming.NamingContextExtPOA.NamingContextExtPOA() definition code for org.omg.CosNaming.NamingContextExtPOA.NamingContextExtPOA() ()
           
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String [] _all_interfaces sample code for org.omg.CosNaming.NamingContextExtPOA._all_interfaces(org.omg.PortableServer.POA, byte[]) definition code for org.omg.CosNaming.NamingContextExtPOA._all_interfaces(org.omg.PortableServer.POA, byte[]) (POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  poa, byte[] objectId)
          Used by the ORB to obtain complete type information from the servant.
 OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream _invoke sample code for org.omg.CosNaming.NamingContextExtPOA._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) definition code for org.omg.CosNaming.NamingContextExtPOA._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) (String sample code for java.lang.String definition code for java.lang.String  $method, InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in, ResponseHandler sample code for org.omg.CORBA.portable.ResponseHandler definition code for org.omg.CORBA.portable.ResponseHandler  $rh)
          Invoked by the ORB to dispatch a request to the servant.
 NamingContextExt sample code for org.omg.CosNaming.NamingContextExt definition code for org.omg.CosNaming.NamingContextExt _this sample code for org.omg.CosNaming.NamingContextExtPOA._this() definition code for org.omg.CosNaming.NamingContextExtPOA._this() ()
           
 NamingContextExt sample code for org.omg.CosNaming.NamingContextExt definition code for org.omg.CosNaming.NamingContextExt _this sample code for org.omg.CosNaming.NamingContextExtPOA._this(org.omg.CORBA.ORB) definition code for org.omg.CosNaming.NamingContextExtPOA._this(org.omg.CORBA.ORB) (ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB  orb)
           
 
Methods inherited from class org.omg.PortableServer.Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant
_default_POA sample code for org.omg.PortableServer.Servant._default_POA() definition code for org.omg.PortableServer.Servant._default_POA() , _get_delegate sample code for org.omg.PortableServer.Servant._get_delegate() definition code for org.omg.PortableServer.Servant._get_delegate() , _get_interface_def sample code for org.omg.PortableServer.Servant._get_interface_def() definition code for org.omg.PortableServer.Servant._get_interface_def() , _is_a sample code for org.omg.PortableServer.Servant._is_a(java.lang.String) definition code for org.omg.PortableServer.Servant._is_a(java.lang.String) , _non_existent sample code for org.omg.PortableServer.Servant._non_existent() definition code for org.omg.PortableServer.Servant._non_existent() , _object_id sample code for org.omg.PortableServer.Servant._object_id() definition code for org.omg.PortableServer.Servant._object_id() , _orb sample code for org.omg.PortableServer.Servant._orb() definition code for org.omg.PortableServer.Servant._orb() , _poa sample code for org.omg.PortableServer.Servant._poa() definition code for org.omg.PortableServer.Servant._poa() , _set_delegate sample code for org.omg.PortableServer.Servant._set_delegate(org.omg.PortableServer.portable.Delegate) definition code for org.omg.PortableServer.Servant._set_delegate(org.omg.PortableServer.portable.Delegate) , _this_object sample code for org.omg.PortableServer.Servant._this_object() definition code for org.omg.PortableServer.Servant._this_object() , _this_object sample code for org.omg.PortableServer.Servant._this_object(org.omg.CORBA.ORB) definition code for org.omg.PortableServer.Servant._this_object(org.omg.CORBA.ORB)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface org.omg.CosNaming.NamingContextExtOperations sample code for org.omg.CosNaming.NamingContextExtOperations definition code for org.omg.CosNaming.NamingContextExtOperations
resolve_str sample code for org.omg.CosNaming.NamingContextExtOperations.resolve_str(java.lang.String) definition code for org.omg.CosNaming.NamingContextExtOperations.resolve_str(java.lang.String) , to_name sample code for org.omg.CosNaming.NamingContextExtOperations.to_name(java.lang.String) definition code for org.omg.CosNaming.NamingContextExtOperations.to_name(java.lang.String) , to_string sample code for org.omg.CosNaming.NamingContextExtOperations.to_string(org.omg.CosNaming.NameComponent[]) definition code for org.omg.CosNaming.NamingContextExtOperations.to_string(org.omg.CosNaming.NameComponent[]) , to_url sample code for org.omg.CosNaming.NamingContextExtOperations.to_url(java.lang.String, java.lang.String) definition code for org.omg.CosNaming.NamingContextExtOperations.to_url(java.lang.String, java.lang.String)
 
Methods inherited from interface org.omg.CosNaming.NamingContextOperations sample code for org.omg.CosNaming.NamingContextOperations definition code for org.omg.CosNaming.NamingContextOperations
bind_context sample code for org.omg.CosNaming.NamingContextOperations.bind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext) definition code for org.omg.CosNaming.NamingContextOperations.bind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext) , bind_new_context sample code for org.omg.CosNaming.NamingContextOperations.bind_new_context(org.omg.CosNaming.NameComponent[]) definition code for org.omg.CosNaming.NamingContextOperations.bind_new_context(org.omg.CosNaming.NameComponent[]) , bind sample code for org.omg.CosNaming.NamingContextOperations.bind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object) definition code for org.omg.CosNaming.NamingContextOperations.bind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object) , destroy sample code for org.omg.CosNaming.NamingContextOperations.destroy() definition code for org.omg.CosNaming.NamingContextOperations.destroy() , list sample code for org.omg.CosNaming.NamingContextOperations.list(int, org.omg.CosNaming.BindingListHolder, org.omg.CosNaming.BindingIteratorHolder) definition code for org.omg.CosNaming.NamingContextOperations.list(int, org.omg.CosNaming.BindingListHolder, org.omg.CosNaming.BindingIteratorHolder) , new_context sample code for org.omg.CosNaming.NamingContextOperations.new_context() definition code for org.omg.CosNaming.NamingContextOperations.new_context() , rebind_context sample code for org.omg.CosNaming.NamingContextOperations.rebind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext) definition code for org.omg.CosNaming.NamingContextOperations.rebind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext) , rebind sample code for org.omg.CosNaming.NamingContextOperations.rebind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object) definition code for org.omg.CosNaming.NamingContextOperations.rebind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object) , resolve sample code for org.omg.CosNaming.NamingContextOperations.resolve(org.omg.CosNaming.NameComponent[]) definition code for org.omg.CosNaming.NamingContextOperations.resolve(org.omg.CosNaming.NameComponent[]) , unbind sample code for org.omg.CosNaming.NamingContextOperations.unbind(org.omg.CosNaming.NameComponent[]) definition code for org.omg.CosNaming.NamingContextOperations.unbind(org.omg.CosNaming.NameComponent[])
 

Constructor Detail

NamingContextExtPOA sample code for org.omg.CosNaming.NamingContextExtPOA() definition code for org.omg.CosNaming.NamingContextExtPOA()

public NamingContextExtPOA()
Method Detail

_invoke sample code for org.omg.CosNaming.NamingContextExtPOA._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) definition code for org.omg.CosNaming.NamingContextExtPOA._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler)

public OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  _invoke(String sample code for java.lang.String definition code for java.lang.String  $method,
                            InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in,
                            ResponseHandler sample code for org.omg.CORBA.portable.ResponseHandler definition code for org.omg.CORBA.portable.ResponseHandler  $rh)
Description copied from interface: InvokeHandler sample code for org.omg.CORBA.portable.InvokeHandler._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) definition code for org.omg.CORBA.portable.InvokeHandler._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler)
Invoked by the ORB to dispatch a request to the servant. ORB passes the method name, an InputStream containing the marshalled arguments, and a ResponseHandler which the servant uses to construct a proper reply. Only CORBA SystemException may be thrown by this method. The method must return an OutputStream created by the ResponseHandler which contains the marshalled reply. A servant must not retain a reference to the ResponseHandler beyond the lifetime of a method invocation. Servant behaviour is defined as follows:

1. Determine correct method, and unmarshal parameters from InputStream.

2. Invoke method implementation.

3. If no user exception, create a normal reply using ResponseHandler.

4. If user exception occurred, create exception reply using ResponseHandler.

5. Marshal reply into OutputStream returned by ResponseHandler.

6. Return OutputStream to ORB.

Specified by:
_invoke sample code for org.omg.CORBA.portable.InvokeHandler._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) definition code for org.omg.CORBA.portable.InvokeHandler._invoke(java.lang.String, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler) in interface InvokeHandler sample code for org.omg.CORBA.portable.InvokeHandler definition code for org.omg.CORBA.portable.InvokeHandler
Parameters:
$method - The method name.
in - The InputStream containing the marshalled arguments.
$rh - The ResponseHandler which the servant uses to construct a proper reply
Returns:
The OutputStream created by the ResponseHandler which contains the marshalled reply

_all_interfaces sample code for org.omg.CosNaming.NamingContextExtPOA._all_interfaces(org.omg.PortableServer.POA, byte[]) definition code for org.omg.CosNaming.NamingContextExtPOA._all_interfaces(org.omg.PortableServer.POA, byte[])

public String sample code for java.lang.String definition code for java.lang.String [] _all_interfaces(POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  poa,
                                byte[] objectId)
Description copied from class: Servant sample code for org.omg.PortableServer.Servant._all_interfaces(org.omg.PortableServer.POA, byte[]) definition code for org.omg.PortableServer.Servant._all_interfaces(org.omg.PortableServer.POA, byte[])
Used by the ORB to obtain complete type information from the servant.

Specified by:
_all_interfaces sample code for org.omg.PortableServer.Servant._all_interfaces(org.omg.PortableServer.POA, byte[]) definition code for org.omg.PortableServer.Servant._all_interfaces(org.omg.PortableServer.POA, byte[]) in class Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant
Parameters:
poa - POA with which the servant is associated.
objectId - is the id corresponding to the object associated with this servant.
Returns:
list of type information for the object.

_this sample code for org.omg.CosNaming.NamingContextExtPOA._this() definition code for org.omg.CosNaming.NamingContextExtPOA._this()

public NamingContextExt sample code for org.omg.CosNaming.NamingContextExt definition code for org.omg.CosNaming.NamingContextExt  _this()

_this sample code for org.omg.CosNaming.NamingContextExtPOA._this(org.omg.CORBA.ORB) definition code for org.omg.CosNaming.NamingContextExtPOA._this(org.omg.CORBA.ORB)

public NamingContextExt sample code for org.omg.CosNaming.NamingContextExt definition code for org.omg.CosNaming.NamingContextExt  _this(ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB  orb)