|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.symphony.soam.Message
com.platform.symphony.soam.DefaultTextMessage
public class DefaultTextMessage
This represents a default implementation for developers requiring a
convenient way to submit text messages without creating their own
implementation. This object is not thread safe, therefore the developer
is responsible for any synchronization required. This message can be used
in applications that have a "cross-platform" implementation.
(i.e. client and service may be implemented in different supported languages)
NOTE: If any of the methods of this class are called after the main(...) method exits,
the client or service process may behave in an undefined manner (for example,
hang or terminate abnormally).
Message
Constructor Summary | |
---|---|
DefaultTextMessage()
Default constructor for the default text message. |
|
DefaultTextMessage(java.lang.String text)
Additional constructor for the default text message. |
Method Summary | |
---|---|
java.lang.String |
getText()
This method allows the developer to retrieve the text from the message. |
void |
onDeserialize(InputStream stream)
\brief This method will be called during de-serialization of the message. |
void |
onSerialize(OutputStream stream)
\brief This method will be called during serialization of the message. |
void |
setText(java.lang.String text)
This method allows the developer to set the text within the message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTextMessage()
public DefaultTextMessage(java.lang.String text)
setText(String)
Method Detail |
---|
public void onSerialize(OutputStream stream) throws SoamException
onSerialize
in class Message
stream
- The stream to which the object is being serialized.
SoamException
public void onDeserialize(InputStream stream) throws SoamException
onDeserialize
in class Message
stream
- The stream from which the object is being de-serialized.
SoamException
public void setText(java.lang.String text)
text
- The text message to be associated with the DefaultTextMessage.public java.lang.String getText()
|
Version 5.1 Date Modified: -DREL_DATE=Apr 28 2011 Platform Computing. Accelerating Intelligence(TM). Copyright (C) 2001-2009 Platform Computing Corporation. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |