|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.Message
public abstract class Message
Contains the data that is to be passed by the middleware from the client to the
service, or vice versa.
A Message
object will use an OutputStream
and an
InputStream
to serialize and deserialize its data, respectively.
The Message
class should be extended by the application developer.
The developer must implement the onSerialize
and
onDeserialize
methods to ensure proper serialization and
deserialization.
IMPORTANT NOTE:
The following Message
APIs:
Session.sendTaskInput(Message)
TaskContext.setTaskOutput(Message)
must be used for applications where the client and service are written
in different languages, e.g. Java client with C++ service.
These same Message
APIs can also be used for Java-to-Java
applications. However, the SOAM API also provides a means to pass
java.io.Serializable
objects between a Java client and a Java service:
Session.sendTaskInput(java.io.Serializable)
TaskContext.setTaskOutput(java.io.Serializable)
InputStream
,
OutputStream
,
Session.sendTaskInput(com.platform.symphony.soam.TaskSubmissionAttributes)
,
TaskContext.setTaskOutput(com.platform.symphony.soam.Message)
Constructor Summary | |
---|---|
Message()
Default Constructor |
Method Summary | |
---|---|
abstract void |
onDeserialize(InputStream stream)
Invoked when this Message object needs to be deserialized. |
abstract void |
onSerialize(OutputStream stream)
Invoked when this Message object needs to be serialized. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Message()
Method Detail |
---|
public abstract void onSerialize(OutputStream stream) throws SoamException
Message
object needs to be serialized.
This method is to be implemented by the application developer, such that. Its
implementation should serialize the content of this Message
to the stream object provided.
stream
- The output stream to be written
SoamException
public abstract void onDeserialize(InputStream stream) throws SoamException
Message
object needs to be deserialized.
This method is to be implemented by the application developer. Its
implementation should read the contents of the provided stream and
populate this Message
object.
stream
- The input stream to be read
SoamException
|
Version 4.1 Date Modified: -DREL_DATE=Nov 03 2008 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2008 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |