Joram ${version}

org.objectweb.joram.client.jms
Class MapMessage

java.lang.Object
  extended byorg.objectweb.joram.client.jms.Message
      extended byorg.objectweb.joram.client.jms.MapMessage
All Implemented Interfaces:
javax.jms.MapMessage, javax.jms.Message

public class MapMessage
extends Message
implements javax.jms.MapMessage

Implements the javax.jms.MapMessage interface.


Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.Message
momMsg, sess
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Method Summary
 void clearBody()
          API method.
 boolean getBoolean(java.lang.String name)
          API method.
 byte getByte(java.lang.String name)
          API method.
 byte[] getBytes(java.lang.String name)
          API method.
 char getChar(java.lang.String name)
          API method.
 double getDouble(java.lang.String name)
          API method.
 float getFloat(java.lang.String name)
          API method.
 int getInt(java.lang.String name)
          API method.
 long getLong(java.lang.String name)
          API method.
 java.util.Enumeration getMapNames()
          API method.
 java.lang.Object getObject(java.lang.String name)
          API method.
 short getShort(java.lang.String name)
          API method.
 java.lang.String getString(java.lang.String name)
          API method.
 boolean itemExists(java.lang.String name)
          API method.
protected  void prepare()
          Method actually preparing the message for sending by transfering the local body into the wrapped MOM message.
 void setBoolean(java.lang.String name, boolean value)
          API method.
 void setByte(java.lang.String name, byte value)
          API method.
 void setBytes(java.lang.String name, byte[] value)
          API method.
 void setBytes(java.lang.String name, byte[] value, int offset, int length)
          API method.
 void setChar(java.lang.String name, char value)
          API method.
 void setDouble(java.lang.String name, double value)
          API method.
 void setFloat(java.lang.String name, float value)
          API method.
 void setInt(java.lang.String name, int value)
          API method.
 void setLong(java.lang.String name, long value)
          API method.
 void setObject(java.lang.String name, java.lang.Object value)
          API method.
 void setShort(java.lang.String name, short value)
          API method.
 void setString(java.lang.String name, java.lang.String value)
          API method.
 
Methods inherited from class org.objectweb.joram.client.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, wrapMomMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Method Detail

clearBody

public void clearBody()
               throws javax.jms.JMSException
API method.

Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class Message
Throws:
javax.jms.JMSException - Actually never thrown.

setBoolean

public void setBoolean(java.lang.String name,
                       boolean value)
                throws javax.jms.JMSException
API method.

Specified by:
setBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setByte

public void setByte(java.lang.String name,
                    byte value)
             throws javax.jms.JMSException
API method.

Specified by:
setByte in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setBytes

public void setBytes(java.lang.String name,
                     byte[] value)
              throws javax.jms.JMSException
API method.

Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setBytes

public void setBytes(java.lang.String name,
                     byte[] value,
                     int offset,
                     int length)
              throws javax.jms.JMSException
API method.

Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setChar

public void setChar(java.lang.String name,
                    char value)
             throws javax.jms.JMSException
API method.

Specified by:
setChar in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setDouble

public void setDouble(java.lang.String name,
                      double value)
               throws javax.jms.JMSException
API method.

Specified by:
setDouble in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setFloat

public void setFloat(java.lang.String name,
                     float value)
              throws javax.jms.JMSException
API method.

Specified by:
setFloat in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setInt

public void setInt(java.lang.String name,
                   int value)
            throws javax.jms.JMSException
API method.

Specified by:
setInt in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setLong

public void setLong(java.lang.String name,
                    long value)
             throws javax.jms.JMSException
API method.

Specified by:
setLong in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setShort

public void setShort(java.lang.String name,
                     short value)
              throws javax.jms.JMSException
API method.

Specified by:
setShort in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setString

public void setString(java.lang.String name,
                      java.lang.String value)
               throws javax.jms.JMSException
API method.

Specified by:
setString in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.JMSException

setObject

public void setObject(java.lang.String name,
                      java.lang.Object value)
               throws javax.jms.JMSException
API method.

Specified by:
setObject in interface javax.jms.MapMessage
Throws:
javax.jms.MessageNotWriteableException - If the message body is read-only.
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getBoolean

public boolean getBoolean(java.lang.String name)
                   throws javax.jms.JMSException
API method.

Specified by:
getBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getByte

public byte getByte(java.lang.String name)
             throws javax.jms.JMSException
API method.

Specified by:
getByte in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getBytes

public byte[] getBytes(java.lang.String name)
                throws javax.jms.JMSException
API method.

Specified by:
getBytes in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getChar

public char getChar(java.lang.String name)
             throws javax.jms.JMSException
API method.

Specified by:
getChar in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getDouble

public double getDouble(java.lang.String name)
                 throws javax.jms.JMSException
API method.

Specified by:
getDouble in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getFloat

public float getFloat(java.lang.String name)
               throws javax.jms.JMSException
API method.

Specified by:
getFloat in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getInt

public int getInt(java.lang.String name)
           throws javax.jms.JMSException
API method.

Specified by:
getInt in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getLong

public long getLong(java.lang.String name)
             throws javax.jms.JMSException
API method.

Specified by:
getLong in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getObject

public java.lang.Object getObject(java.lang.String name)
                           throws javax.jms.JMSException
API method.

Specified by:
getObject in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException - Actually never thrown.

getShort

public short getShort(java.lang.String name)
               throws javax.jms.JMSException
API method.

Specified by:
getShort in interface javax.jms.MapMessage
Throws:
javax.jms.MessageFormatException - If the value type is invalid.
javax.jms.JMSException

getString

public java.lang.String getString(java.lang.String name)
                           throws javax.jms.JMSException
API method.

Specified by:
getString in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException - Actually never thrown.

itemExists

public boolean itemExists(java.lang.String name)
                   throws javax.jms.JMSException
API method.

Specified by:
itemExists in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException - Actually never thrown.

getMapNames

public java.util.Enumeration getMapNames()
                                  throws javax.jms.JMSException
API method.

Specified by:
getMapNames in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException - Actually never thrown.

prepare

protected void prepare()
                throws java.lang.Exception
Method actually preparing the message for sending by transfering the local body into the wrapped MOM message.

Overrides:
prepare in class Message
Throws:
java.lang.Exception - If an error occurs while serializing.

Joram ${version}

Copyright ? 2005 Scalagent - All rights reserved