|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.david.libs.services.java_serial.JavaSerialService
The Java Serial Service is used by clients that wish to use Java Serialization instead of CDR serialization to encode values. It may be used only if the server reference contains an indication that the server supports Java serialization. Service information is passed only with requests. Replies use the same encoding as replies.
Field Summary |
Fields inherited from interface org.objectweb.david.apis.services.java_serial.JAVA_SERIAL_SERVICE |
TAG_JAVA_SERIAL |
Constructor Summary | |
JavaSerialService()
Creates an instance of the service. |
Method Summary | |
org.omg.IOP.ServiceContext |
getReplyContext(int request_id,
org.objectweb.jonathan.apis.kernel.Context ignored)
Returns null; |
org.omg.IOP.ServiceContext |
getRequestContext(int request_id,
boolean response_expected,
byte[] object_key,
org.objectweb.jonathan.apis.kernel.Context message_context)
Returns an indication whether java serialization is used. |
void |
handleReplyContext(org.omg.IOP.ServiceContext context,
int request_id,
org.objectweb.jonathan.apis.kernel.Context ignored)
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 request_id,
boolean response_expected,
byte[] object_key,
org.objectweb.jonathan.apis.kernel.Context message_context)
This method is called by the services handler to let the operations related to the target service be performed on request arrival. |
java.lang.Object |
newObject(org.objectweb.jonathan.apis.kernel.Context c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaSerialService()
Method Detail |
public java.lang.Object newObject(org.objectweb.jonathan.apis.kernel.Context c)
newObject
in interface org.objectweb.jonathan.apis.kernel.Factory
public org.omg.IOP.ServiceContext getRequestContext(int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_context)
getRequestContext
in interface Service
request_id
- the request identifier (ignored);response_expected
- indicates whether a response is expected or not
(ignored);object_key
- the request target object key (ignored).message_context
- the context of the request marshaller.
public org.omg.IOP.ServiceContext getReplyContext(int request_id, org.objectweb.jonathan.apis.kernel.Context ignored)
getReplyContext
in interface Service
request_id
- the corresponding request id (unused).ignored
- the context of the reply marshaller.
public void handleRequestContext(org.omg.IOP.ServiceContext context, int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_context)
handleRequestContext
in interface Service
context
- the service context of the request;request_id
- the request identifier;response_expected
- indicates whether a response is expected or not;object_key
- the request target object key.message_context
- the context of the request unmarshaller.public void handleReplyContext(org.omg.IOP.ServiceContext context, int request_id, org.objectweb.jonathan.apis.kernel.Context ignored)
handleReplyContext
in interface Service
context
- the service context of the reply;request_id
- the corresponding request identifier.ignored
- the context of the reply unmarshaller.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |