org.omg.CosNaming
Class NamingContextPOA

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

public abstract class NamingContextPOA
extends Servant
implements NamingContextOperations, InvokeHandler

The 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
NamingContextPOA()
           
 
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)
          The server calls this method after receiving the request message from client.
 NamingContext _this()
          Get the CORBA object that delegates calls to this servant.
 NamingContext _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.NamingContextOperations
bind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbind
 

Constructor Detail

NamingContextPOA

public NamingContextPOA()
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)
The server calls this method after receiving the request message from client. The implementation base calls one of its abstract methods to perform the requested operation.

Specified by:
_invoke in interface InvokeHandler
Parameters:
method - the method being invoked.
in - the stream to read parameters from.
rh - the handler to get a stream for writing a response.
Returns:
the stream, returned by the handler.

_this

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


_this

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