Package org.apache.qpid.jms.message
Class JmsMapMessage
- java.lang.Object
-
- org.apache.qpid.jms.message.JmsMessage
-
- org.apache.qpid.jms.message.JmsMapMessage
-
- All Implemented Interfaces:
javax.jms.MapMessage,javax.jms.Message
public class JmsMapMessage extends JmsMessage implements javax.jms.MapMessage
Implementation of the JMS MapMessage.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.jms.message.JmsMessage
acknowledgeCallback, connection, readOnly, readOnlyBody, readOnlyProperties, validatePropertyNames
-
-
Constructor Summary
Constructors Constructor Description JmsMapMessage(JmsMapMessageFacade facade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()JmsMapMessagecopy()protected <T> TdoGetBody(Class<T> asType)booleangetBoolean(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)booleanisBodyAssignableTo(Class target)booleanitemExists(String name)Indicates whether an item exists in thisMapMessageobject.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)StringtoString()-
Methods inherited from class org.apache.qpid.jms.message.JmsMessage
acknowledge, checkReadOnly, checkReadOnlyBody, checkReadOnlyProperties, checkWriteOnlyBody, clearProperties, copy, equals, getAcknowledgeCallback, getAllPropertyNames, getBody, getBooleanProperty, getByteProperty, getConnection, getDoubleProperty, getFacade, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isExpired, isReadOnly, isReadOnlyBody, isReadOnlyProperties, isValidatePropertyNames, onDispatch, onSend, onSendComplete, propertyExists, setAcknowledgeCallback, setBooleanProperty, setByteProperty, setConnection, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnly, setReadOnlyBody, setReadOnlyProperties, setShortProperty, setStringProperty, setValidatePropertyNames
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
-
-
-
Constructor Detail
-
JmsMapMessage
public JmsMapMessage(JmsMapMessageFacade facade)
-
-
Method Detail
-
copy
public JmsMapMessage copy() throws javax.jms.JMSException
- Overrides:
copyin classJmsMessage- Throws:
javax.jms.JMSException
-
clearBody
public void clearBody() throws javax.jms.JMSException- Specified by:
clearBodyin interfacejavax.jms.Message- Overrides:
clearBodyin classJmsMessage- Throws:
javax.jms.JMSException
-
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
-
getShort
public short getShort(String name) throws javax.jms.JMSException
- Specified by:
getShortin 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
-
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
-
getFloat
public float getFloat(String name) throws javax.jms.JMSException
- Specified by:
getFloatin 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
-
getString
public String getString(String name) throws javax.jms.JMSException
- Specified by:
getStringin 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
-
getObject
public Object getObject(String name) throws javax.jms.JMSException
- Specified by:
getObjectin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
getMapNames
public Enumeration<String> getMapNames() throws javax.jms.JMSException
- Specified by:
getMapNamesin 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
-
setShort
public void setShort(String name, short value) throws javax.jms.JMSException
- Specified by:
setShortin 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
-
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
-
setFloat
public void setFloat(String name, float value) throws javax.jms.JMSException
- Specified by:
setFloatin 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
-
setString
public void setString(String name, String value) throws javax.jms.JMSException
- Specified by:
setStringin 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
-
setObject
public void setObject(String name, Object value) throws javax.jms.JMSException
- Specified by:
setObjectin interfacejavax.jms.MapMessage- Throws:
javax.jms.JMSException
-
itemExists
public boolean itemExists(String name) throws javax.jms.JMSException
Indicates whether an item exists in thisMapMessageobject.- Specified by:
itemExistsin interfacejavax.jms.MapMessage- Parameters:
name- the name of the item to test- Returns:
- true if the item exists
- Throws:
javax.jms.JMSException- if the JMS provider fails to determine if the item exists due to some internal error.
-
toString
public String toString()
- Overrides:
toStringin classJmsMessage
-
isBodyAssignableTo
public boolean isBodyAssignableTo(Class target) throws javax.jms.JMSException
- Specified by:
isBodyAssignableToin interfacejavax.jms.Message- Overrides:
isBodyAssignableToin classJmsMessage- Throws:
javax.jms.JMSException
-
doGetBody
protected <T> T doGetBody(Class<T> asType) throws javax.jms.JMSException
- Overrides:
doGetBodyin classJmsMessage- Throws:
javax.jms.JMSException
-
-