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 void
clearBody()
JmsMapMessage
copy()
protected <T> T
doGetBody(java.lang.Class<T> asType)
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<java.lang.String>
getMapNames()
java.lang.Object
getObject(java.lang.String name)
short
getShort(java.lang.String name)
java.lang.String
getString(java.lang.String name)
boolean
isBodyAssignableTo(java.lang.Class target)
boolean
itemExists(java.lang.String name)
Indicates whether an item exists in thisMapMessage
object.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)
java.lang.String
toString()
-
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:
copy
in classJmsMessage
- Throws:
javax.jms.JMSException
-
clearBody
public void clearBody() throws javax.jms.JMSException
- Specified by:
clearBody
in interfacejavax.jms.Message
- Overrides:
clearBody
in classJmsMessage
- Throws:
javax.jms.JMSException
-
getBoolean
public boolean getBoolean(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getBoolean
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getByte
public byte getByte(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getByte
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getShort
public short getShort(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getShort
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getChar
public char getChar(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getChar
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getInt
public int getInt(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getInt
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getLong
public long getLong(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getLong
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getFloat
public float getFloat(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getFloat
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getDouble
public double getDouble(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getDouble
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getString
public java.lang.String getString(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getString
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getBytes
public byte[] getBytes(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getBytes
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getObject
public java.lang.Object getObject(java.lang.String name) throws javax.jms.JMSException
- Specified by:
getObject
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
getMapNames
public java.util.Enumeration<java.lang.String> getMapNames() throws javax.jms.JMSException
- Specified by:
getMapNames
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setBoolean
public void setBoolean(java.lang.String name, boolean value) throws javax.jms.JMSException
- Specified by:
setBoolean
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setByte
public void setByte(java.lang.String name, byte value) throws javax.jms.JMSException
- Specified by:
setByte
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setShort
public void setShort(java.lang.String name, short value) throws javax.jms.JMSException
- Specified by:
setShort
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setChar
public void setChar(java.lang.String name, char value) throws javax.jms.JMSException
- Specified by:
setChar
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setInt
public void setInt(java.lang.String name, int value) throws javax.jms.JMSException
- Specified by:
setInt
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setLong
public void setLong(java.lang.String name, long value) throws javax.jms.JMSException
- Specified by:
setLong
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setFloat
public void setFloat(java.lang.String name, float value) throws javax.jms.JMSException
- Specified by:
setFloat
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setDouble
public void setDouble(java.lang.String name, double value) throws javax.jms.JMSException
- Specified by:
setDouble
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setString
public void setString(java.lang.String name, java.lang.String value) throws javax.jms.JMSException
- Specified by:
setString
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setBytes
public void setBytes(java.lang.String name, byte[] value) throws javax.jms.JMSException
- Specified by:
setBytes
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setBytes
public void setBytes(java.lang.String name, byte[] value, int offset, int length) throws javax.jms.JMSException
- Specified by:
setBytes
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
setObject
public void setObject(java.lang.String name, java.lang.Object value) throws javax.jms.JMSException
- Specified by:
setObject
in interfacejavax.jms.MapMessage
- Throws:
javax.jms.JMSException
-
itemExists
public boolean itemExists(java.lang.String name) throws javax.jms.JMSException
Indicates whether an item exists in thisMapMessage
object.- Specified by:
itemExists
in 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 java.lang.String toString()
- Overrides:
toString
in classJmsMessage
-
isBodyAssignableTo
public boolean isBodyAssignableTo(java.lang.Class target) throws javax.jms.JMSException
- Specified by:
isBodyAssignableTo
in interfacejavax.jms.Message
- Overrides:
isBodyAssignableTo
in classJmsMessage
- Throws:
javax.jms.JMSException
-
doGetBody
protected <T> T doGetBody(java.lang.Class<T> asType) throws javax.jms.JMSException
- Overrides:
doGetBody
in classJmsMessage
- Throws:
javax.jms.JMSException
-
-