org.objectweb.carol.rmi.jonathan.david
Class DavidCarolHandler

java.lang.Object
  |
  +--org.objectweb.carol.rmi.jonathan.david.DavidCarolHandler

public class DavidCarolHandler
extends java.lang.Object

Class CarolHandler is the CAROL Handler for Jonathan server interception

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Constructor Summary
DavidCarolHandler()
          Builds a new Jonathan david carol service handler instance.
 
Method Summary
 org.omg.IOP.ServiceContext getReplyContext(int id, Context k)
          Returns a reply context.
 org.omg.IOP.ServiceContext getRequestContext(int id, boolean r, byte[] key, Context k)
          Returns a request context.
 void handleReplyContext(org.omg.IOP.ServiceContext context, int id, Context k)
          This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
 void handleRequestContext(org.omg.IOP.ServiceContext context, int id, boolean r, byte[] key, Context k)
          This method is called by the services handler to let the operations related to the target service be performed on request arrival.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavidCarolHandler

public DavidCarolHandler()
                  throws JonathanException
Builds a new Jonathan david carol service handler instance.

Throws:
JonathanException - if something goes wrong.
Method Detail

getRequestContext

public org.omg.IOP.ServiceContext getRequestContext(int id,
                                                    boolean r,
                                                    byte[] key,
                                                    Context k)
Returns a request context.

Returns:
always null

getReplyContext

public org.omg.IOP.ServiceContext getReplyContext(int id,
                                                  Context k)
Returns a reply context.

Returns:
always null

handleRequestContext

public void handleRequestContext(org.omg.IOP.ServiceContext context,
                                 int id,
                                 boolean r,
                                 byte[] key,
                                 Context k)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.

Parameters:
context - the service context of the request;

handleReplyContext

public void handleReplyContext(org.omg.IOP.ServiceContext context,
                               int id,
                               Context k)
This method is called by the services handler to let the operations related to the target service be performed on reply arrival.

Parameters:
context - the service context of the reply;