org.objectweb.david.libs.stub_factories.std
Class Skeleton

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--org.objectweb.david.libs.stub_factories.std.Skeleton
All Implemented Interfaces:
Constants, InvokeHandler, Object

public abstract class Skeleton
extends ObjectImpl
implements Constants, InvokeHandler

Base class for Jonathan skeletons.


Fields inherited from interface org.objectweb.david.libs.stub_factories.std.Constants
_bad_operation, _corba_object_id, _corba_prefix, _just_corba_object
 
Constructor Summary
Skeleton()
          Constructs a new skeleton.
 
Method Summary
protected  int _getOperationSwitchKey(String op_name)
          This method must be redefined by subclasses.
 OutputStream _invoke(String method, InputStream input, ResponseHandler handler)
          This method must be redefined by subclasses.
abstract  void _setContinuation(Object continuation)
          Sets this object's continuation, i.e., the servant bearing the service methods.
 
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, _ids, _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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Skeleton

public Skeleton()
Constructs a new skeleton.
Method Detail

_setContinuation

public abstract void _setContinuation(Object continuation)
Sets this object's continuation, i.e., the servant bearing the service methods.
Parameters:
continuation - the servant bearing the service methods.

_invoke

public OutputStream _invoke(String method,
                            InputStream input,
                            ResponseHandler handler)
                     throws BAD_OPERATION
This method must be redefined by subclasses.
Specified by:
_invoke in interface InvokeHandler
Parameters:
method - a method name
input - a CORBA input stream
handler - a response handler
Returns:
a reply message
Throws:
BAD_OPERATION - always thrown.

_getOperationSwitchKey

protected int _getOperationSwitchKey(String op_name)
                              throws BAD_OPERATION
This method must be redefined by subclasses.
Parameters:
op_name - an method name.
Returns:
a unique integer key for op_name.
Throws:
BAD_OPERATION - always thrown.