org.omg.CosNaming
Class NamingContextExtPOA

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosNaming.NamingContextExtPOA
All Implemented Interfaces:
InvokeHandler, NamingContextExtOperations, NamingContextOperations

public abstract class NamingContextExtPOA
extends Servant
implements NamingContextExtOperations, InvokeHandler

The extended naming service servant. After implementing the abstract methods the instance of this class can be connected to an ORB using POA.

Since:
1.4

Constructor Summary
NamingContextExtPOA()
           
 
Method Summary
 String[] _all_interfaces(POA poa, byte[] object_ID)
          Get the repository ids of all interfaces, supported by the CORBA object, identified by the passed Id.
 OutputStream _invoke(String method, InputStream in, ResponseHandler rh)
          Invoke the object method.
 NamingContextExt _this()
          Get the CORBA object that delegates calls to this servant.
 NamingContextExt _this(ORB orb)
          Get the CORBA object that delegates calls to this servant.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CosNaming.NamingContextExtOperations
resolve_str, to_name, to_string, to_url
 
Methods inherited from interface org.omg.CosNaming.NamingContextOperations
bind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbind
 

Constructor Detail

NamingContextExtPOA

public NamingContextExtPOA()
Method Detail

_all_interfaces

public String[] _all_interfaces(POA poa,
                                byte[] object_ID)
Description copied from class: Servant
Get the repository ids of all interfaces, supported by the CORBA object, identified by the passed Id. In the typical code the passed parameters are ignored, returning an array of repository ids, supported by the servant implementation.

Specified by:
_all_interfaces in class Servant
Parameters:
poa - a POA of the given object.
object_ID - the object Id of the given object.
Returns:
an array, containing the repository ids.

_invoke

public OutputStream _invoke(String method,
                            InputStream in,
                            ResponseHandler rh)
Description copied from interface: InvokeHandler
Invoke the object method.

Specified by:
_invoke in interface InvokeHandler
Parameters:
method - the name of the method to invoke.
in - the input stream to read parameters from.
rh - the response handler, used for creating the reply.
Returns:
the output stream, returned by ResponseHandler. The response values are already written to that stream.

_this

public NamingContextExt _this()
Get the CORBA object that delegates calls to this servant. The servant must be already connected to an ORB.


_this

public NamingContextExt _this(ORB orb)
Get the CORBA object that delegates calls to this servant. Connect to the given ORB, if needed.