hhms
Class Message

java.lang.Object
  extended byhhms.Message

public class Message
extends java.lang.Object

A Message used to send messages. A Message has JMS Text Message compatible structure.

Sample Code:

Sample Message Creation:

  • new Message();
  • setEventInt();
  • setReplyTo();
  • setText()/setBytes();
  • setIntProperty()/setStringProperty();

    Title: Message

    Copyright: Copyright (c) 2004

    Company: CommunityGrids Labs at Indiana University


    Constructor Summary
    Message()
               
    Message(byte[] payload)
               
    Message(byte[] payload, int topicInt, int eventInt)
               
    Message(java.lang.String payload)
               
     
    Method Summary
     byte[] getBytes()
               
     int getEventInt()
               
     int getIntProperty(java.lang.String name)
               
     java.lang.String getReplyTo()
               
     java.lang.String getStringProperty(java.lang.String name)
               
     java.lang.String getText()
               
     int getTopicInt()
               
     int propLength()
               
     void setBytes(byte[] s)
               
     void setEventInt(int eventInt)
               
     void setIntProperty(java.lang.String name, int value)
               
     void setReplyTo(java.lang.String replyTopic)
               
     void setStringProperty(java.lang.String name, java.lang.String value)
               
     void setText(java.lang.String s)
               
     void setTopicInt(int topicInt)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    Message

    public Message()

    Message

    public Message(byte[] payload)

    Message

    public Message(java.lang.String payload)

    Message

    public Message(byte[] payload,
                   int topicInt,
                   int eventInt)
    Method Detail

    getText

    public java.lang.String getText()

    getBytes

    public byte[] getBytes()

    setText

    public void setText(java.lang.String s)

    setBytes

    public void setBytes(byte[] s)

    getTopicInt

    public int getTopicInt()

    setTopicInt

    public void setTopicInt(int topicInt)

    getEventInt

    public int getEventInt()

    setReplyTo

    public void setReplyTo(java.lang.String replyTopic)

    getReplyTo

    public java.lang.String getReplyTo()

    setEventInt

    public void setEventInt(int eventInt)

    setIntProperty

    public void setIntProperty(java.lang.String name,
                               int value)

    getIntProperty

    public int getIntProperty(java.lang.String name)
                       throws HHMSException
    Throws:
    HHMSException

    setStringProperty

    public void setStringProperty(java.lang.String name,
                                  java.lang.String value)

    getStringProperty

    public java.lang.String getStringProperty(java.lang.String name)
                                       throws HHMSException
    Throws:
    HHMSException

    propLength

    public int propLength()