jms4spread
Class MapMessage

java.lang.Object
  |
  +--jms4spread.Message
        |
        +--jms4spread.MapMessage
All Implemented Interfaces:
java.io.Serializable

public class MapMessage
extends Message

Map Message is used to send name-value pairs values using JMS4Spread

See Also:
Serialized Form

Fields inherited from class jms4spread.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Method Summary
 boolean getBoolean(java.lang.String name)
          Gets a Boolean value corresposding specified name
 byte getByte(java.lang.String name)
          Gets a Byte value corresposding specified name
 byte[] getBytes(java.lang.String name)
          Gets a Byte array corresposding specified name
 char getChar(java.lang.String name)
          Gets a char value corresposding specified name
 double getDouble(java.lang.String name)
          Gets a double value corresposding specified name
 float getFloat(java.lang.String name)
          Gets a float value corresposding specified name
 int getInt(java.lang.String name)
          Gets an int value corresposding specified name
 long getLong(java.lang.String name)
          Gets a long value corresposding specified name
 java.util.Enumeration getMapNames()
          Gets an Enumeration of the Name in the MapMessage Object
 java.lang.Object getObject(java.lang.String name)
          Gets a Object corresposding specified name
 short getShort(java.lang.String name)
          Gets a short value corresposding specified name
 java.lang.String getString(java.lang.String name)
          Gets a string value corresposding specified name
 boolean itemExists(java.lang.String name)
          Indicated whether item with name exists in MapMessage
 void setBoolean(java.lang.String name, boolean value)
          Sets a boolean with specified name in the Map message
 void setByte(java.lang.String name, byte value)
          Sets a byte with specified name in the Map message
 void setBytes(java.lang.String name, byte[] value)
          Sets an array byte with specified name in the Map message
 void setBytes(java.lang.String name, byte[] value, int offset, int length)
          Sets an array byte with specified name in the Map message
 void setChar(java.lang.String name, char value)
          Sets a char with specified name in the Map message
 void setDouble(java.lang.String name, double value)
          Sets a double with specified name in the Map message
 void setFloat(java.lang.String name, float value)
          Sets a float with specified name in the Map message
 void setInt(java.lang.String name, int value)
          Sets an int with specified name in the Map message
 void setLong(java.lang.String name, long value)
          Sets a long with specified name in the Map message
 void setObject(java.lang.String name, java.lang.Object value)
          Sets an Object with specified name in the Map message
 void setShort(java.lang.String name, short value)
          Sets a short with specified name in the Map message
 void setString(java.lang.String name, java.lang.String value)
          Sets a String specified name in the Map message
 
Methods inherited from class jms4spread.Message
clearBody, clearProperties, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageType, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getMessageID, JMSTimeStamp, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageType, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimeStamp, setMessageID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBoolean

public boolean getBoolean(java.lang.String name)
                   throws JMSException
Gets a Boolean value corresposding specified name
Parameters:
name - the name of the boolean
Returns:
the boolean value with specified name
Throws:
JMSException - in case of internal error

getByte

public byte getByte(java.lang.String name)
             throws JMSException
Gets a Byte value corresposding specified name
Parameters:
name - the name of the Byte
Returns:
the byte value with specified name
Throws:
JMSException - in case of internal error

getBytes

public byte[] getBytes(java.lang.String name)
                throws JMSException
Gets a Byte array corresposding specified name
Parameters:
name - the name of the Byte array
Returns:
the byte arrat with specified name
Throws:
JMSException - in case of internal error

getChar

public char getChar(java.lang.String name)
             throws JMSException
Gets a char value corresposding specified name
Parameters:
name - the name of the char
Returns:
the char value with specified name
Throws:
JMSException - in case of internal error

getDouble

public double getDouble(java.lang.String name)
                 throws JMSException
Gets a double value corresposding specified name
Parameters:
name - the name of the double
Returns:
the double value with specified name
Throws:
JMSException - in case of internal error

getFloat

public float getFloat(java.lang.String name)
               throws JMSException
Gets a float value corresposding specified name
Parameters:
name - the name of the float
Returns:
the float value with specified name
Throws:
JMSException - in case of internal error

getInt

public int getInt(java.lang.String name)
           throws JMSException
Gets an int value corresposding specified name
Parameters:
name - the name of the int
Returns:
the int value with specified name
Throws:
JMSException - in case of internal error

getLong

public long getLong(java.lang.String name)
             throws JMSException
Gets a long value corresposding specified name
Parameters:
name - the name of the long
Returns:
the long value with specified name
Throws:
JMSException - in case of internal error

getMapNames

public java.util.Enumeration getMapNames()
                                  throws JMSException
Gets an Enumeration of the Name in the MapMessage Object
Throws:
JMSException - in case of internal error

getObject

public java.lang.Object getObject(java.lang.String name)
                           throws JMSException
Gets a Object corresposding specified name
Parameters:
name - the name of the Object
Returns:
the Object with specified name
Throws:
JMSException - in case of internal error

getShort

public short getShort(java.lang.String name)
               throws JMSException
Gets a short value corresposding specified name
Parameters:
name - the name of the short
Returns:
the short value with specified name
Throws:
JMSException - in case of internal error

getString

public java.lang.String getString(java.lang.String name)
                           throws JMSException
Gets a string value corresposding specified name
Parameters:
name - the name of the string
Returns:
the string value with specified name
Throws:
JMSException - in case of internal error

itemExists

public boolean itemExists(java.lang.String name)
                   throws JMSException
Indicated whether item with name exists in MapMessage
Parameters:
name - the name of the item
Returns:
boolean inditating the existence of the item
Throws:
JMSException - in case of internal error

setBoolean

public void setBoolean(java.lang.String name,
                       boolean value)
                throws JMSException
Sets a boolean with specified name in the Map message
Parameters:
name - the name of the boolean
value - the value of the boolean
Throws:
JMSException - in case of internal error

setByte

public void setByte(java.lang.String name,
                    byte value)
             throws JMSException
Sets a byte with specified name in the Map message
Parameters:
name - the name of the boolean
value - the value of the byte
Throws:
JMSException - in case of internal error

setBytes

public void setBytes(java.lang.String name,
                     byte[] value)
              throws JMSException
Sets an array byte with specified name in the Map message
Parameters:
name - the name of the array of bytes
value - the array of the bytes
Throws:
JMSException - in case of internal error

setBytes

public void setBytes(java.lang.String name,
                     byte[] value,
                     int offset,
                     int length)
              throws JMSException
Sets an array byte with specified name in the Map message
Parameters:
name - the name of the array of bytes
value - the array of the bytes
offset - the offset in the array of bytes
the - length of the array of bytes
Throws:
JMSException - in case of internal error

setChar

public void setChar(java.lang.String name,
                    char value)
             throws JMSException
Sets a char with specified name in the Map message
Parameters:
name - the name of the char
value - the value of the char
Throws:
JMSException - in case of internal error

setDouble

public void setDouble(java.lang.String name,
                      double value)
               throws JMSException
Sets a double with specified name in the Map message
Parameters:
name - the name of the double
value - the value of the double
Throws:
JMSException - in case of internal error

setFloat

public void setFloat(java.lang.String name,
                     float value)
              throws JMSException
Sets a float with specified name in the Map message
Parameters:
name - the name of the float
value - the value of the float
Throws:
JMSException - in case of internal error

setInt

public void setInt(java.lang.String name,
                   int value)
            throws JMSException
Sets an int with specified name in the Map message
Parameters:
name - the name of the int
value - the value of the int
Throws:
JMSException - in case of internal error

setLong

public void setLong(java.lang.String name,
                    long value)
             throws JMSException
Sets a long with specified name in the Map message
Parameters:
name - the name of the long
value - the value of the long
Throws:
JMSException - in case of internal error

setObject

public void setObject(java.lang.String name,
                      java.lang.Object value)
               throws JMSException
Sets an Object with specified name in the Map message
Parameters:
name - the name of the Object
value - the value of the Object
Throws:
JMSException - in case of internal error

setShort

public void setShort(java.lang.String name,
                     short value)
              throws JMSException
Sets a short with specified name in the Map message
Parameters:
name - the name of the short
value - the value of the short
Throws:
JMSException - in case of internal error

setString

public void setString(java.lang.String name,
                      java.lang.String value)
               throws JMSException
Sets a String specified name in the Map message
Parameters:
name - the name of the String
value - the value of the String
Throws:
JMSException - in case of internal error