org.apache.qpid.client.message
Class JMSMapMessage
java.lang.Object
org.apache.qpid.client.message.AbstractJMSMessage
org.apache.qpid.client.message.AbstractBytesMessage
org.apache.qpid.client.message.AbstractBytesTypedMessage
org.apache.qpid.client.message.JMSMapMessage
- All Implemented Interfaces:
- MapMessage, Message
- Direct Known Subclasses:
- AMQPEncodedMapMessage
public class JMSMapMessage
- extends AbstractBytesTypedMessage
- implements MapMessage
Fields inherited from class org.apache.qpid.client.message.AbstractBytesTypedMessage |
BOOLEAN_TYPE, BYTE_TYPE, BYTEARRAY_TYPE, CHAR_TYPE, DOUBLE_TYPE, FLOAT_TYPE, INT_TYPE, LONG_TYPE, NULL_STRING_TYPE, SHORT_TYPE, STRING_TYPE |
Method Summary |
protected void |
checkPropertyName(String propName)
|
void |
clearBodyImpl()
This forces concrete classes to implement clearBody() |
boolean |
getBoolean(String propName)
|
byte |
getByte(String propName)
|
byte[] |
getBytes(String propName)
|
char |
getChar(String propName)
|
org.apache.mina.common.ByteBuffer |
getData()
|
double |
getDouble(String propName)
|
float |
getFloat(String propName)
|
int |
getInt(String propName)
|
long |
getLong(String propName)
|
Enumeration |
getMapNames()
|
protected String |
getMimeType()
|
Object |
getObject(String propName)
|
short |
getShort(String propName)
|
String |
getString(String propName)
|
boolean |
itemExists(String propName)
|
protected void |
populateMapFromData()
|
void |
setBoolean(String propName,
boolean b)
|
void |
setByte(String propName,
byte b)
|
void |
setBytes(String propName,
byte[] bytes)
|
void |
setBytes(String propName,
byte[] bytes,
int offset,
int length)
|
void |
setChar(String propName,
char c)
|
void |
setDouble(String propName,
double v)
|
void |
setFloat(String propName,
float v)
|
void |
setInt(String propName,
int i)
|
void |
setLong(String propName,
long l)
|
void |
setObject(String propName,
Object value)
|
void |
setShort(String propName,
short i)
|
void |
setString(String propName,
String string1)
|
String |
toBodyString()
Get a String representation of the body of the message. |
protected void |
writeMapToData()
|
Methods inherited from class org.apache.qpid.client.message.AbstractBytesTypedMessage |
readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readInt, readIntImpl, readLong, readObject, readShort, readString, readStringImpl, readWireType, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeIntImpl, writeLong, writeObject, writeShort, writeString, writeStringImpl, writeTypeDiscriminator |
Methods inherited from class org.apache.qpid.client.message.AbstractJMSMessage |
acknowledge, acknowledgeThis, checkReadable, checkWritable, clearBody, clearProperties, getAMQSession, getBooleanProperty, getByteProperty, getContentLength, getContentType, getDelegate, getDeliveryTag, getDoubleProperty, getEncoding, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getReplyToString, getShortProperty, getStringProperty, prepareForSending, propertyExists, receivedFromServer, removeProperty, reset, setAMQSession, setBooleanProperty, setByteProperty, setContentType, setDoubleProperty, setEncoding, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString |
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 |
MIME_TYPE
public static final String MIME_TYPE
- See Also:
- Constant Field Values
_map
protected Map<String,Object> _map
JMSMapMessage
public JMSMapMessage(AMQMessageDelegateFactory delegateFactory)
throws JMSException
- Throws:
JMSException
JMSMapMessage
JMSMapMessage(AMQMessageDelegateFactory delegateFactory,
org.apache.mina.common.ByteBuffer data)
throws JMSException
- Throws:
JMSException
JMSMapMessage
JMSMapMessage(AMQMessageDelegate delegate,
org.apache.mina.common.ByteBuffer data)
throws org.apache.qpid.AMQException
- Throws:
org.apache.qpid.AMQException
toBodyString
public String toBodyString()
throws JMSException
- Description copied from class:
AbstractJMSMessage
- Get a String representation of the body of the message. Used in the toString() method which outputs this before
message properties.
- Overrides:
toBodyString
in class AbstractBytesMessage
- Throws:
JMSException
getMimeType
protected String getMimeType()
- Specified by:
getMimeType
in class AbstractJMSMessage
getData
public org.apache.mina.common.ByteBuffer getData()
- Overrides:
getData
in class AbstractJMSMessage
clearBodyImpl
public void clearBodyImpl()
throws JMSException
- Description copied from class:
AbstractJMSMessage
- This forces concrete classes to implement clearBody()
- Overrides:
clearBodyImpl
in class AbstractBytesMessage
- Throws:
JMSException
getBoolean
public boolean getBoolean(String propName)
throws JMSException
- Specified by:
getBoolean
in interface MapMessage
- Throws:
JMSException
getByte
public byte getByte(String propName)
throws JMSException
- Specified by:
getByte
in interface MapMessage
- Throws:
JMSException
getShort
public short getShort(String propName)
throws JMSException
- Specified by:
getShort
in interface MapMessage
- Throws:
JMSException
getInt
public int getInt(String propName)
throws JMSException
- Specified by:
getInt
in interface MapMessage
- Throws:
JMSException
getLong
public long getLong(String propName)
throws JMSException
- Specified by:
getLong
in interface MapMessage
- Throws:
JMSException
getChar
public char getChar(String propName)
throws JMSException
- Specified by:
getChar
in interface MapMessage
- Throws:
JMSException
getFloat
public float getFloat(String propName)
throws JMSException
- Specified by:
getFloat
in interface MapMessage
- Throws:
JMSException
getDouble
public double getDouble(String propName)
throws JMSException
- Specified by:
getDouble
in interface MapMessage
- Throws:
JMSException
getString
public String getString(String propName)
throws JMSException
- Specified by:
getString
in interface MapMessage
- Throws:
JMSException
getBytes
public byte[] getBytes(String propName)
throws JMSException
- Specified by:
getBytes
in interface MapMessage
- Throws:
JMSException
getObject
public Object getObject(String propName)
throws JMSException
- Specified by:
getObject
in interface MapMessage
- Throws:
JMSException
getMapNames
public Enumeration getMapNames()
throws JMSException
- Specified by:
getMapNames
in interface MapMessage
- Throws:
JMSException
setBoolean
public void setBoolean(String propName,
boolean b)
throws JMSException
- Specified by:
setBoolean
in interface MapMessage
- Throws:
JMSException
setByte
public void setByte(String propName,
byte b)
throws JMSException
- Specified by:
setByte
in interface MapMessage
- Throws:
JMSException
setShort
public void setShort(String propName,
short i)
throws JMSException
- Specified by:
setShort
in interface MapMessage
- Throws:
JMSException
setChar
public void setChar(String propName,
char c)
throws JMSException
- Specified by:
setChar
in interface MapMessage
- Throws:
JMSException
setInt
public void setInt(String propName,
int i)
throws JMSException
- Specified by:
setInt
in interface MapMessage
- Throws:
JMSException
setLong
public void setLong(String propName,
long l)
throws JMSException
- Specified by:
setLong
in interface MapMessage
- Throws:
JMSException
setFloat
public void setFloat(String propName,
float v)
throws JMSException
- Specified by:
setFloat
in interface MapMessage
- Throws:
JMSException
setDouble
public void setDouble(String propName,
double v)
throws JMSException
- Specified by:
setDouble
in interface MapMessage
- Throws:
JMSException
setString
public void setString(String propName,
String string1)
throws JMSException
- Specified by:
setString
in interface MapMessage
- Throws:
JMSException
setBytes
public void setBytes(String propName,
byte[] bytes)
throws JMSException
- Specified by:
setBytes
in interface MapMessage
- Throws:
JMSException
setBytes
public void setBytes(String propName,
byte[] bytes,
int offset,
int length)
throws JMSException
- Specified by:
setBytes
in interface MapMessage
- Throws:
JMSException
setObject
public void setObject(String propName,
Object value)
throws JMSException
- Specified by:
setObject
in interface MapMessage
- Throws:
JMSException
checkPropertyName
protected void checkPropertyName(String propName)
itemExists
public boolean itemExists(String propName)
throws JMSException
- Specified by:
itemExists
in interface MapMessage
- Throws:
JMSException
populateMapFromData
protected void populateMapFromData()
throws JMSException
- Throws:
JMSException
writeMapToData
protected void writeMapToData()
Licensed to the Apache Software Foundation