org.apache.qpid.client.message
Class AbstractJMSMessage
java.lang.Object
org.apache.qpid.client.message.AMQMessage
org.apache.qpid.client.message.AbstractJMSMessage
- All Implemented Interfaces:
- javax.jms.Message
- Direct Known Subclasses:
- JMSBytesMessage, JMSObjectMessage, JMSTextMessage
public abstract class AbstractJMSMessage
- extends AMQMessage
- implements javax.jms.Message
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary |
protected |
AbstractJMSMessage(org.apache.qpid.framing.BasicContentHeaderProperties contentHeader,
long deliveryTag)
|
protected |
AbstractJMSMessage(org.apache.mina.common.ByteBuffer data)
|
protected |
AbstractJMSMessage(long deliveryTag,
org.apache.qpid.framing.BasicContentHeaderProperties contentHeader,
org.apache.mina.common.ByteBuffer data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BOOLEAN_PROPERTY_PREFIX
public static final char BOOLEAN_PROPERTY_PREFIX
- See Also:
- Constant Field Values
BYTE_PROPERTY_PREFIX
public static final char BYTE_PROPERTY_PREFIX
- See Also:
- Constant Field Values
SHORT_PROPERTY_PREFIX
public static final char SHORT_PROPERTY_PREFIX
- See Also:
- Constant Field Values
INT_PROPERTY_PREFIX
public static final char INT_PROPERTY_PREFIX
- See Also:
- Constant Field Values
LONG_PROPERTY_PREFIX
public static final char LONG_PROPERTY_PREFIX
- See Also:
- Constant Field Values
FLOAT_PROPERTY_PREFIX
public static final char FLOAT_PROPERTY_PREFIX
- See Also:
- Constant Field Values
DOUBLE_PROPERTY_PREFIX
public static final char DOUBLE_PROPERTY_PREFIX
- See Also:
- Constant Field Values
STRING_PROPERTY_PREFIX
public static final char STRING_PROPERTY_PREFIX
- See Also:
- Constant Field Values
_redelivered
protected boolean _redelivered
_data
protected org.apache.mina.common.ByteBuffer _data
AbstractJMSMessage
protected AbstractJMSMessage(org.apache.mina.common.ByteBuffer data)
AbstractJMSMessage
protected AbstractJMSMessage(long deliveryTag,
org.apache.qpid.framing.BasicContentHeaderProperties contentHeader,
org.apache.mina.common.ByteBuffer data)
throws org.apache.qpid.AMQException
- Throws:
org.apache.qpid.AMQException
AbstractJMSMessage
protected AbstractJMSMessage(org.apache.qpid.framing.BasicContentHeaderProperties contentHeader,
long deliveryTag)
getJMSMessageID
public java.lang.String getJMSMessageID()
throws javax.jms.JMSException
- Specified by:
getJMSMessageID
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSMessageID
public void setJMSMessageID(java.lang.String messageId)
throws javax.jms.JMSException
- Specified by:
setJMSMessageID
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSTimestamp
public long getJMSTimestamp()
throws javax.jms.JMSException
- Specified by:
getJMSTimestamp
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSTimestamp
public void setJMSTimestamp(long timestamp)
throws javax.jms.JMSException
- Specified by:
setJMSTimestamp
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSCorrelationIDAsBytes
public byte[] getJMSCorrelationIDAsBytes()
throws javax.jms.JMSException
- Specified by:
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSCorrelationIDAsBytes
public void setJMSCorrelationIDAsBytes(byte[] bytes)
throws javax.jms.JMSException
- Specified by:
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSCorrelationID
public void setJMSCorrelationID(java.lang.String correlationId)
throws javax.jms.JMSException
- Specified by:
setJMSCorrelationID
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSCorrelationID
public java.lang.String getJMSCorrelationID()
throws javax.jms.JMSException
- Specified by:
getJMSCorrelationID
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSReplyTo
public javax.jms.Destination getJMSReplyTo()
throws javax.jms.JMSException
- Specified by:
getJMSReplyTo
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSReplyTo
public void setJMSReplyTo(javax.jms.Destination destination)
throws javax.jms.JMSException
- Specified by:
setJMSReplyTo
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSDestination
public javax.jms.Destination getJMSDestination()
throws javax.jms.JMSException
- Specified by:
getJMSDestination
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSDestination
public void setJMSDestination(javax.jms.Destination destination)
throws javax.jms.JMSException
- Specified by:
setJMSDestination
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSDeliveryMode
public int getJMSDeliveryMode()
throws javax.jms.JMSException
- Specified by:
getJMSDeliveryMode
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSDeliveryMode
public void setJMSDeliveryMode(int i)
throws javax.jms.JMSException
- Specified by:
setJMSDeliveryMode
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSRedelivered
public boolean getJMSRedelivered()
throws javax.jms.JMSException
- Specified by:
getJMSRedelivered
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSRedelivered
public void setJMSRedelivered(boolean b)
throws javax.jms.JMSException
- Specified by:
setJMSRedelivered
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSType
public java.lang.String getJMSType()
throws javax.jms.JMSException
- Specified by:
getJMSType
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSType
public void setJMSType(java.lang.String string)
throws javax.jms.JMSException
- Specified by:
setJMSType
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSExpiration
public long getJMSExpiration()
throws javax.jms.JMSException
- Specified by:
getJMSExpiration
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSExpiration
public void setJMSExpiration(long l)
throws javax.jms.JMSException
- Specified by:
setJMSExpiration
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getJMSPriority
public int getJMSPriority()
throws javax.jms.JMSException
- Specified by:
getJMSPriority
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setJMSPriority
public void setJMSPriority(int i)
throws javax.jms.JMSException
- Specified by:
setJMSPriority
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
clearProperties
public void clearProperties()
throws javax.jms.JMSException
- Specified by:
clearProperties
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
propertyExists
public boolean propertyExists(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
propertyExists
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getBooleanProperty
public boolean getBooleanProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getBooleanProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getByteProperty
public byte getByteProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getByteProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getShortProperty
public short getShortProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getShortProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getIntProperty
public int getIntProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getIntProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getLongProperty
public long getLongProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getLongProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getFloatProperty
public float getFloatProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getFloatProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getDoubleProperty
public double getDoubleProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getDoubleProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getStringProperty
public java.lang.String getStringProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getStringProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getObjectProperty
public java.lang.Object getObjectProperty(java.lang.String propertyName)
throws javax.jms.JMSException
- Specified by:
getObjectProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
getPropertyNames
public java.util.Enumeration getPropertyNames()
throws javax.jms.JMSException
- Specified by:
getPropertyNames
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setBooleanProperty
public void setBooleanProperty(java.lang.String propertyName,
boolean b)
throws javax.jms.JMSException
- Specified by:
setBooleanProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setByteProperty
public void setByteProperty(java.lang.String propertyName,
byte b)
throws javax.jms.JMSException
- Specified by:
setByteProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setShortProperty
public void setShortProperty(java.lang.String propertyName,
short i)
throws javax.jms.JMSException
- Specified by:
setShortProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setIntProperty
public void setIntProperty(java.lang.String propertyName,
int i)
throws javax.jms.JMSException
- Specified by:
setIntProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setLongProperty
public void setLongProperty(java.lang.String propertyName,
long l)
throws javax.jms.JMSException
- Specified by:
setLongProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setFloatProperty
public void setFloatProperty(java.lang.String propertyName,
float f)
throws javax.jms.JMSException
- Specified by:
setFloatProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setDoubleProperty
public void setDoubleProperty(java.lang.String propertyName,
double v)
throws javax.jms.JMSException
- Specified by:
setDoubleProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setStringProperty
public void setStringProperty(java.lang.String propertyName,
java.lang.String value)
throws javax.jms.JMSException
- Specified by:
setStringProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
setObjectProperty
public void setObjectProperty(java.lang.String string,
java.lang.Object object)
throws javax.jms.JMSException
- Specified by:
setObjectProperty
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
acknowledge
public void acknowledge()
throws javax.jms.JMSException
- Specified by:
acknowledge
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
clearBody
public abstract void clearBody()
throws javax.jms.JMSException
- Specified by:
clearBody
in interface javax.jms.Message
- Throws:
javax.jms.JMSException
toBodyString
public abstract java.lang.String toBodyString()
throws javax.jms.JMSException
- Get a String representation of the body of the message. Used in the
toString() method which outputs this before message properties.
- Throws:
javax.jms.JMSException
getMimeType
public abstract java.lang.String getMimeType()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getUnderlyingMessagePropertiesMap
public java.util.Map getUnderlyingMessagePropertiesMap()
setUnderlyingMessagePropertiesMap
public void setUnderlyingMessagePropertiesMap(org.apache.qpid.framing.FieldTable messageProperties)
populateHeadersFromMessageProperties
public org.apache.qpid.framing.FieldTable populateHeadersFromMessageProperties()
getJmsContentHeaderProperties
public org.apache.qpid.framing.BasicContentHeaderProperties getJmsContentHeaderProperties()
getData
public org.apache.mina.common.ByteBuffer getData()