Visit Platform at http://www.platform.com

Main Page   Class Hierarchy   Compound List   Compound Members  

Message Class Reference

The interfaces of the Message object will be implemented by the SOAM developer. More...

Inheritance diagram for Message:

DefaultBinaryMessage DefaultByteArrayMessage DefaultTextMessage List of all members.

Public Methods

virtual void onSerialize (OutputStreamPtr &stream)=0 throw (SoamException)
 Will be called when a Message object is serialized.

virtual void onDeserialize (InputStreamPtr &stream)=0 throw (SoamException)
 Will be called when a Message object is de-serialized.


Detailed Description

The interfaces of the Message object will be implemented by the SOAM developer.

SOAM will deliver the data between the client and service. It will use InputStream and OutputStream to serialize and de-serialize the data.

See also:
InputStream , OutputStream


Member Function Documentation

virtual void onSerialize OutputStreamPtr   stream throw (SoamException) [pure virtual]
 

Will be called when a Message object is serialized.

This method will be implemented by the SOAM developer. It will serialize its content to the stream object provided.

Parameters:
stream  [IN] - an output stream object.
Exceptions:
SoamException 
See also:
OutputStream

Implemented in DefaultBinaryMessage, DefaultByteArrayMessage, and DefaultTextMessage.

virtual void onDeserialize InputStreamPtr   stream throw (SoamException) [pure virtual]
 

Will be called when a Message object is de-serialized.

This method will be implemented by the SOAM developer. It will de-serialize the contents of the stream provided and populate the object.

Parameters:
stream  [IN] - an input stream object that contains the data required to reconstruct a Message object.
Exceptions:
SoamException 
See also:
InputStream

Implemented in DefaultBinaryMessage, DefaultByteArrayMessage, and DefaultTextMessage.



     
Date Modified: 3 Nov 2008
Platform Support: support@platform.com
Platform Information Development: doc@platform.com

Platform Computing. Accelerating Intelligence(TM).
Copyright © 2001-2008 Platform Computing Corporation. All rights reserved.