Package org.jboss.resource.adapter.jms
Class JmsMapMessage
- java.lang.Object
-
- org.jboss.resource.adapter.jms.JmsMessage
-
- org.jboss.resource.adapter.jms.JmsMapMessage
-
- All Implemented Interfaces:
javax.jms.MapMessage,javax.jms.Message
public class JmsMapMessage extends JmsMessage implements javax.jms.MapMessage
A wrapper for a message- Author:
- Adrian Brock
-
-
Constructor Summary
Constructors Constructor Description JmsMapMessage(javax.jms.MapMessage message, JmsSession session)Create a new wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)EnumerationgetMapNames()ObjectgetObject(String name)shortgetShort(String name)StringgetString(String name)booleanitemExists(String name)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)-
Methods inherited from class org.jboss.resource.adapter.jms.JmsMessage
acknowledge, clearBody, clearProperties, equals, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.jms.Message
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, 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(javax.jms.MapMessage message, JmsSession session)Create a new wrapper- Parameters:
message- the messagesession- the session
-
-
Method Detail
-
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 getMapNames() throws javax.jms.JMSException
- Specified by:
getMapNamesin 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
-
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, int offset, int length) throws javax.jms.JMSException
- Specified by:
setBytesin 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
-
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
-
-