com.anabas.ibus
Class GMS_TextMessageImpl

java.lang.Object
  |
  +--com.anabas.gxo.GMS_Message
        |
        +--com.anabas.gxo.GMS_TextMessage
              |
              +--com.anabas.ibus.GMS_TextMessageImpl

public class GMS_TextMessageImpl
extends GMS_TextMessage

Title: Description: Copyright: Copyright (c) 2000 Company:


Fields inherited from class com.anabas.gxo.GMS_Message
BODYTYPE_BYTES, BODYTYPE_MAP, BODYTYPE_OBJECT, BODYTYPE_TEXT, BODYTYPE_XML, MSGTYPE_ACK, MSGTYPE_ADMINISTRATION, MSGTYPE_MAJOR, MSGTYPE_MINOR, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_REALTIME
 
Constructor Summary
GMS_TextMessageImpl(javax.jms.TextMessage msg)
           
 
Method Summary
 void clearBody()
           
 void clearProperties()
           
 long getBodyType()
           
 GMS_MessageID getID()
          Uniquely identifies it from other messages within the system.
 javax.jms.Message getJMSMessage()
           
 long getMessageType()
          One of ADMINSTRATION, NORMAL, or ACK.
 long getPriority()
           
 java.lang.Object getProperty(java.lang.String name)
          Message property definition.
 java.util.Enumeration getPropertyNames()
           
 java.lang.String getText()
           
 com.anabas.concepts.Time getTimeStamp()
           
 void setProperty(java.lang.String name, java.lang.Object property)
          Sets a message property.
 void setText(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMS_TextMessageImpl

public GMS_TextMessageImpl(javax.jms.TextMessage msg)
Method Detail

getText

public java.lang.String getText()
                         throws GXO_Exception
Overrides:
getText in class GMS_TextMessage

getJMSMessage

public javax.jms.Message getJMSMessage()

setText

public void setText(java.lang.String str)
             throws GXO_Exception
Overrides:
setText in class GMS_TextMessage

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws GXO_Exception
Description copied from class: GMS_Message
Message property definition.
Overrides:
getProperty in class GMS_Message

getTimeStamp

public com.anabas.concepts.Time getTimeStamp()
                                      throws GXO_Exception
Overrides:
getTimeStamp in class GMS_Message
Tags copied from class: GMS_Message
Returns:
The time stamp of when the message was sent within the global time system.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object property)
                 throws GXO_Exception
Description copied from class: GMS_Message
Sets a message property.
Overrides:
setProperty in class GMS_Message
Tags copied from class: GMS_Message
Throws:
InvalidPropertyException - The property type or content is unsupported or incorrect.

getPriority

public long getPriority()
                 throws GXO_Exception
Overrides:
getPriority in class GMS_Message
Tags copied from class: GMS_Message
Returns:
The priority of the message

getBodyType

public long getBodyType()
Overrides:
getBodyType in class GMS_Message
Tags copied from class: GMS_Message
Returns:
One of the types defined as BODYTYPE_XXX

getID

public GMS_MessageID getID()
Description copied from class: GMS_Message
Uniquely identifies it from other messages within the system. ?? Should it be unique within the system?
Overrides:
getID in class GMS_Message

getPropertyNames

public java.util.Enumeration getPropertyNames()
                                       throws GXO_Exception
Overrides:
getPropertyNames in class GMS_Message

clearBody

public void clearBody()
               throws GXO_Exception
Overrides:
clearBody in class GMS_Message

getMessageType

public long getMessageType()
                    throws GXO_Exception
Description copied from class: GMS_Message
One of ADMINSTRATION, NORMAL, or ACK.
Overrides:
getMessageType in class GMS_Message

clearProperties

public void clearProperties()
                     throws GXO_Exception
Overrides:
clearProperties in class GMS_Message