org.objectweb.jeremie.services.handler.api

Interface ServicesHandler

Known Implementing Classes:
DavidServicesHandler

public interface ServicesHandler

A ServicesHandler object is used to manage CORBA services.

Method Summary

ServiceContext[]
getReplyContexts(int request_id, Context message_context)
Returns a list of service contexts.
ServiceContext[]
getRequestContexts(int request_id, boolean response_expected, byte[] object_key, Context message_context)
Returns a list of service contexts.
void
handleReplyContexts(ServiceContext contexts, int request_id, Context message_context)
Lets the handler manage the provided contexts.
void
handleRequestContexts(ServiceContext contexts, int request_id, boolean response_expected, byte[] object_key, Context message_context)
Lets the handler manage the provided contexts.

Method Details

getReplyContexts

public ServiceContext[] getReplyContexts(int request_id,
                                         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.


getRequestContexts

public ServiceContext[] getRequestContexts(int request_id,
                                           boolean response_expected,
                                           byte[] object_key,
                                           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.


handleReplyContexts

public void handleReplyContexts(ServiceContext contexts,
                                int request_id,
                                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.


handleRequestContexts

public void handleRequestContexts(ServiceContext contexts,
                                  int request_id,
                                  boolean response_expected,
                                  byte[] object_key,
                                  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.