org.mockejb.jms
Class MapMessageImpl

java.lang.Object
  extended byorg.mockejb.jms.MessageImpl
      extended byorg.mockejb.jms.MapMessageImpl
All Implemented Interfaces:
javax.jms.MapMessage, javax.jms.Message

public class MapMessageImpl
extends MessageImpl
implements javax.jms.MapMessage

MapMessage implementation.

Author:
Dimitar Gospodinov
See Also:
MapMessage

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
MapMessageImpl()
          Creates empty MapMessageImpl
MapMessageImpl(javax.jms.MapMessage msg)
          Creates MapMessageImpl and copies its header, properties and body from msg
 
Method Summary
 boolean getBoolean(java.lang.String name)
           
 byte getByte(java.lang.String name)
           
 byte[] getBytes(java.lang.String name)
           
 char getChar(java.lang.String name)
           
 double getDouble(java.lang.String name)
           
 float getFloat(java.lang.String name)
           
 int getInt(java.lang.String name)
           
 long getLong(java.lang.String name)
           
 java.util.Enumeration getMapNames()
           
 java.lang.Object getObject(java.lang.String name)
           
 short getShort(java.lang.String name)
           
 java.lang.String getString(java.lang.String name)
           
 boolean itemExists(java.lang.String name)
           
 void setBoolean(java.lang.String name, boolean value)
           
 void setByte(java.lang.String name, byte value)
           
 void setBytes(java.lang.String name, byte[] value)
           
 void setBytes(java.lang.String name, byte[] value, int offset, int length)
           
 void setChar(java.lang.String name, char value)
           
 void setDouble(java.lang.String name, double value)
           
 void setFloat(java.lang.String name, float value)
           
 void setInt(java.lang.String name, int value)
           
 void setLong(java.lang.String name, long value)
           
 void setObject(java.lang.String name, java.lang.Object value)
           
 void setShort(java.lang.String name, short value)
           
 void setString(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class org.mockejb.jms.MessageImpl
acknowledge, clearBody, 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, setPropertiesNotWriteable, setShortProperty, setStringProperty
 
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, clearBody, 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
 

Constructor Detail

MapMessageImpl

public MapMessageImpl()
Creates empty MapMessageImpl


MapMessageImpl

public MapMessageImpl(javax.jms.MapMessage msg)
               throws javax.jms.JMSException
Creates MapMessageImpl and copies its header, properties and body from msg

Parameters:
msg -
Throws:
javax.jms.JMSException
Method Detail

getBoolean

public boolean getBoolean(java.lang.String name)
                   throws javax.jms.JMSException
Specified by:
getBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getBoolean(java.lang.String)

getByte

public byte getByte(java.lang.String name)
             throws javax.jms.JMSException
Specified by:
getByte in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getByte(java.lang.String)

getShort

public short getShort(java.lang.String name)
               throws javax.jms.JMSException
Specified by:
getShort in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getShort(java.lang.String)

getChar

public char getChar(java.lang.String name)
             throws javax.jms.JMSException
Specified by:
getChar in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getChar(java.lang.String)

getInt

public int getInt(java.lang.String name)
           throws javax.jms.JMSException
Specified by:
getInt in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getInt(java.lang.String)

getLong

public long getLong(java.lang.String name)
             throws javax.jms.JMSException
Specified by:
getLong in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getLong(java.lang.String)

getFloat

public float getFloat(java.lang.String name)
               throws javax.jms.JMSException
Specified by:
getFloat in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getFloat(java.lang.String)

getDouble

public double getDouble(java.lang.String name)
                 throws javax.jms.JMSException
Specified by:
getDouble in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getDouble(java.lang.String)

getString

public java.lang.String getString(java.lang.String name)
                           throws javax.jms.JMSException
Specified by:
getString in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getString(java.lang.String)

getBytes

public byte[] getBytes(java.lang.String name)
                throws javax.jms.JMSException
Specified by:
getBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getBytes(java.lang.String)

getObject

public java.lang.Object getObject(java.lang.String name)
                           throws javax.jms.JMSException
Specified by:
getObject in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getObject(java.lang.String)

getMapNames

public java.util.Enumeration getMapNames()
                                  throws javax.jms.JMSException
Specified by:
getMapNames in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.getMapNames()

setBoolean

public void setBoolean(java.lang.String name,
                       boolean value)
                throws javax.jms.JMSException
Specified by:
setBoolean in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setBoolean(java.lang.String, boolean)

setByte

public void setByte(java.lang.String name,
                    byte value)
             throws javax.jms.JMSException
Specified by:
setByte in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setByte(java.lang.String, byte)

setShort

public void setShort(java.lang.String name,
                     short value)
              throws javax.jms.JMSException
Specified by:
setShort in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setShort(java.lang.String, short)

setChar

public void setChar(java.lang.String name,
                    char value)
             throws javax.jms.JMSException
Specified by:
setChar in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setChar(java.lang.String, char)

setInt

public void setInt(java.lang.String name,
                   int value)
            throws javax.jms.JMSException
Specified by:
setInt in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setInt(java.lang.String, int)

setLong

public void setLong(java.lang.String name,
                    long value)
             throws javax.jms.JMSException
Specified by:
setLong in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setLong(java.lang.String, long)

setFloat

public void setFloat(java.lang.String name,
                     float value)
              throws javax.jms.JMSException
Specified by:
setFloat in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setFloat(java.lang.String, float)

setDouble

public void setDouble(java.lang.String name,
                      double value)
               throws javax.jms.JMSException
Specified by:
setDouble in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setDouble(java.lang.String, double)

setString

public void setString(java.lang.String name,
                      java.lang.String value)
               throws javax.jms.JMSException
Specified by:
setString in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setString(java.lang.String, java.lang.String)

setBytes

public void setBytes(java.lang.String name,
                     byte[] value)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setBytes(java.lang.String, byte[])

setBytes

public void setBytes(java.lang.String name,
                     byte[] value,
                     int offset,
                     int length)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setBytes(java.lang.String, byte[], int, int)

setObject

public void setObject(java.lang.String name,
                      java.lang.Object value)
               throws javax.jms.JMSException
Specified by:
setObject in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.setObject(java.lang.String, java.lang.Object)

itemExists

public boolean itemExists(java.lang.String name)
                   throws javax.jms.JMSException
Specified by:
itemExists in interface javax.jms.MapMessage
Throws:
javax.jms.JMSException
See Also:
MapMessage.itemExists(java.lang.String)