Class MapMessageImpl
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.AbstractMessage
-
- net.timewalker.ffmq4.common.message.MapMessageImpl
-
- All Implemented Interfaces:
javax.jms.MapMessage,javax.jms.Message
public final class MapMessageImpl extends AbstractMessage implements javax.jms.MapMessage
Implementation of a
MapMessage
-
-
Field Summary
-
Fields inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
bodyIsReadOnly
-
-
Constructor Summary
Constructors Constructor Description MapMessageImpl()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()AbstractMessagecopy()Create an independant copy of this messagebooleangetBoolean(String name)bytegetByte(String name)byte[]getBytes(String name)chargetChar(String name)doublegetDouble(String name)floatgetFloat(String name)intgetInt(String name)longgetLong(String name)Enumeration<String>getMapNames()ObjectgetObject(String name)shortgetShort(String name)StringgetString(String name)protected bytegetType()Get the type value for this messagebooleanitemExists(String name)protected voidserializeBodyTo(RawDataBuffer out)voidsetBoolean(String name, boolean value)voidsetByte(String name, byte value)voidsetBytes(String name, byte[] value)voidsetBytes(String name, byte[] value, int offset, int length)voidsetChar(String name, char value)voidsetDouble(String name, double value)voidsetFloat(String name, float value)voidsetInt(String name, int value)voidsetLong(String name, long value)voidsetObject(String name, Object value)voidsetShort(String name, short value)voidsetString(String name, String value)protected voidunserializeBodyFrom(RawDataBuffer in)-
Methods inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
acknowledge, assertDeserializationLevel, clearProperties, copyCommonFields, ensureDeserializationLevel, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getRawMessage, getSession, getShortProperty, getStringProperty, initializeFromRaw, isInternalCopy, markAsReadOnly, propertyExists, readMapFrom, serializeTo, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setInternalCopy, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setSession, setShortProperty, setStringProperty, toString, writeMapTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
getType
protected byte getType()
Description copied from class:AbstractMessageGet the type value for this message- Specified by:
getTypein classAbstractMessage
-
unserializeBodyFrom
protected void unserializeBodyFrom(RawDataBuffer in)
- Specified by:
unserializeBodyFromin classAbstractMessage
-
serializeBodyTo
protected void serializeBodyTo(RawDataBuffer out)
- Specified by:
serializeBodyToin classAbstractMessage
-
getBoolean
public boolean getBoolean(String name) throws javax.jms.JMSException
- Specified by:
getBooleanin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getByte
public byte getByte(String name) throws javax.jms.JMSException
- Specified by:
getBytein interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getBytes
public byte[] getBytes(String name) throws javax.jms.JMSException
- Specified by:
getBytesin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getChar
public char getChar(String name) throws javax.jms.JMSException
- Specified by:
getCharin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getDouble
public double getDouble(String name) throws javax.jms.JMSException
- Specified by:
getDoublein interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getFloat
public float getFloat(String name) throws javax.jms.JMSException
- Specified by:
getFloatin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getInt
public int getInt(String name) throws javax.jms.JMSException
- Specified by:
getIntin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getLong
public long getLong(String name) throws javax.jms.JMSException
- Specified by:
getLongin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getMapNames
public Enumeration<String> getMapNames()
- Specified by:
getMapNamesin interfacejavax.jms.MapMessage
-
getObject
public Object getObject(String name) throws javax.jms.JMSException
- Specified by:
getObjectin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getShort
public short getShort(String name) throws javax.jms.JMSException
- Specified by:
getShortin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getString
public String getString(String name) throws javax.jms.JMSException
- Specified by:
getStringin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
itemExists
public boolean itemExists(String name) throws javax.jms.JMSException
- Specified by:
itemExistsin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setBoolean
public void setBoolean(String name, boolean value) throws javax.jms.JMSException
- Specified by:
setBooleanin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setByte
public void setByte(String name, byte value) throws javax.jms.JMSException
- Specified by:
setBytein interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setBytes
public void setBytes(String name, byte[] value) throws javax.jms.JMSException
- Specified by:
setBytesin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setBytes
public void setBytes(String name, byte[] value, int offset, int length) throws javax.jms.JMSException
- Specified by:
setBytesin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setChar
public void setChar(String name, char value) throws javax.jms.JMSException
- Specified by:
setCharin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setDouble
public void setDouble(String name, double value) throws javax.jms.JMSException
- Specified by:
setDoublein interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setFloat
public void setFloat(String name, float value) throws javax.jms.JMSException
- Specified by:
setFloatin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setInt
public void setInt(String name, int value) throws javax.jms.JMSException
- Specified by:
setIntin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setLong
public void setLong(String name, long value) throws javax.jms.JMSException
- Specified by:
setLongin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setObject
public void setObject(String name, Object value) throws javax.jms.JMSException
- Specified by:
setObjectin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setShort
public void setShort(String name, short value) throws javax.jms.JMSException
- Specified by:
setShortin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
setString
public void setString(String name, String value) throws javax.jms.JMSException
- Specified by:
setStringin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
clearBody
public void clearBody()
- Specified by:
clearBodyin interfacejavax.jms.Message
-
copy
public AbstractMessage copy()
Description copied from class:AbstractMessageCreate an independant copy of this message- Specified by:
copyin classAbstractMessage
-
-