org.objectweb.jeremie.services.handler.api
Interface ServicesHandler
- DavidServicesHandler
public interface ServicesHandler
A ServicesHandler
object is used to manage CORBA services.
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.
|
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.
request_id
- the request id.message_context
- the context of the reply marshaller.
- 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.
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.
- 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.
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.
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.