org.objectweb.david.apis.services.handler
Interface ServicesHandler

All Known Implementing Classes:
DavidServicesHandler

public interface ServicesHandler

A ServicesHandler object is used to manage CORBA services.


Method Summary
 org.omg.IOP.ServiceContext[] getReplyContexts(int request_id, org.objectweb.jonathan.apis.kernel.Context message_context)
          Returns a list of service contexts.
 org.omg.IOP.ServiceContext[] getRequestContexts(int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_context)
          Returns a list of service contexts.
 void handleReplyContexts(org.omg.IOP.ServiceContext[] contexts, int request_id, org.objectweb.jonathan.apis.kernel.Context message_context)
          Lets the handler manage the provided contexts.
 void handleRequestContexts(org.omg.IOP.ServiceContext[] contexts, int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_context)
          Lets the handler manage the provided contexts.
 

Method Detail

getRequestContexts

public org.omg.IOP.ServiceContext[] getRequestContexts(int request_id,
                                                       boolean response_expected,
                                                       byte[] object_key,
                                                       org.objectweb.jonathan.apis.kernel.Context message_context)
Returns a list of service contexts.

This method is called by an invocation protocol to get service contexts before sending a request.

Parameters:
request_id - the request id;
response_expected - indicates if a response is expected;
object_key - the target object key.
message_context - the context of the request marshaller.
Returns:
a list of service contexts.

getReplyContexts

public org.omg.IOP.ServiceContext[] getReplyContexts(int request_id,
                                                     org.objectweb.jonathan.apis.kernel.Context message_context)
Returns a list of service contexts.

This method is called by an invocation protocol to get service contexts before sending a reply.

Parameters:
request_id - the request id.
message_context - the context of the reply marshaller.
Returns:
a list of service contexts.

handleRequestContexts

public void handleRequestContexts(org.omg.IOP.ServiceContext[] contexts,
                                  int request_id,
                                  boolean response_expected,
                                  byte[] object_key,
                                  org.objectweb.jonathan.apis.kernel.Context message_context)
Lets the handler manage the provided contexts.

This method is called by an invocation protocol on reception of a request.

Parameters:
contexts - the list of contexts contained in the request;
request_id - the request id;
response_expected - indicates whether a response is expected;
object_key - the target object key.
message_context - the context of the request unmarshaller.

handleReplyContexts

public void handleReplyContexts(org.omg.IOP.ServiceContext[] contexts,
                                int request_id,
                                org.objectweb.jonathan.apis.kernel.Context message_context)
Lets the handler manage the provided contexts.

This method is called by an invocation protocol on reception of a reply.

Parameters:
contexts - the list of contexts contained in the reply;
request_id - the request id;
message_context - the context of the reply marshaller.