|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.ra.JBMMessage
public class JBMMessage
A wrapper for a message
Field Summary | |
---|---|
protected javax.jms.Message |
message
The message |
protected JBMSession |
session
The session |
Fields inherited from interface javax.jms.Message |
---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
---|---|
JBMMessage(javax.jms.Message message,
JBMSession session)
Create a new wrapper |
Method Summary | |
---|---|
void |
acknowledge()
Acknowledge |
void |
clearBody()
Clear body |
void |
clearProperties()
Clear properties |
boolean |
equals(java.lang.Object object)
Check for equality |
boolean |
getBooleanProperty(java.lang.String name)
Get property |
byte |
getByteProperty(java.lang.String name)
Get property |
double |
getDoubleProperty(java.lang.String name)
Get property |
float |
getFloatProperty(java.lang.String name)
Get property |
int |
getIntProperty(java.lang.String name)
Get property |
java.lang.String |
getJMSCorrelationID()
Get correlation id |
byte[] |
getJMSCorrelationIDAsBytes()
Get correlation id |
int |
getJMSDeliveryMode()
Get delivery mode |
javax.jms.Destination |
getJMSDestination()
Get destination |
long |
getJMSExpiration()
Get expiration |
java.lang.String |
getJMSMessageID()
Get message id |
int |
getJMSPriority()
Get priority |
boolean |
getJMSRedelivered()
Get redelivered status |
javax.jms.Destination |
getJMSReplyTo()
Get reply to destination |
long |
getJMSTimestamp()
Get timestamp |
java.lang.String |
getJMSType()
Get type |
long |
getLongProperty(java.lang.String name)
Get property |
java.lang.Object |
getObjectProperty(java.lang.String name)
Get property |
java.util.Enumeration |
getPropertyNames()
Get property names |
short |
getShortProperty(java.lang.String name)
Get property |
java.lang.String |
getStringProperty(java.lang.String name)
Get property |
int |
hashCode()
Return the hash code |
boolean |
propertyExists(java.lang.String name)
Do property exist |
void |
setBooleanProperty(java.lang.String name,
boolean value)
Set property |
void |
setByteProperty(java.lang.String name,
byte value)
Set property |
void |
setDoubleProperty(java.lang.String name,
double value)
Set property |
void |
setFloatProperty(java.lang.String name,
float value)
Set property |
void |
setIntProperty(java.lang.String name,
int value)
Set property |
void |
setJMSCorrelationID(java.lang.String correlationID)
Set correlation id |
void |
setJMSCorrelationIDAsBytes(byte[] correlationID)
Set correlation id |
void |
setJMSDeliveryMode(int deliveryMode)
Set delivery mode |
void |
setJMSDestination(javax.jms.Destination destination)
Set destination |
void |
setJMSExpiration(long expiration)
Set expiration |
void |
setJMSMessageID(java.lang.String id)
Set message id |
void |
setJMSPriority(int priority)
Set priority |
void |
setJMSRedelivered(boolean redelivered)
Set redelivered status |
void |
setJMSReplyTo(javax.jms.Destination replyTo)
Set reply to |
void |
setJMSTimestamp(long timestamp)
Set timestamp |
void |
setJMSType(java.lang.String type)
Set type |
void |
setLongProperty(java.lang.String name,
long value)
Set property |
void |
setObjectProperty(java.lang.String name,
java.lang.Object value)
Set property |
void |
setShortProperty(java.lang.String name,
short value)
Set property |
void |
setStringProperty(java.lang.String name,
java.lang.String value)
Set property |
java.lang.String |
toString()
Return string representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.jms.Message message
protected JBMSession session
Constructor Detail |
---|
public JBMMessage(javax.jms.Message message, JBMSession session)
message
- the messagesession
- the sessionMethod Detail |
---|
public void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic boolean getBooleanProperty(java.lang.String name) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic byte getByteProperty(java.lang.String name) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic double getDoubleProperty(java.lang.String name) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic float getFloatProperty(java.lang.String name) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic int getIntProperty(java.lang.String name) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.String getJMSMessageID() throws javax.jms.JMSException
getJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic boolean getJMSRedelivered() throws javax.jms.JMSException
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic long getLongProperty(java.lang.String name) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.Object getObjectProperty(java.lang.String name) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic java.util.Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
- Thrown if an error occurspublic short getShortProperty(java.lang.String name) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic java.lang.String getStringProperty(java.lang.String name) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic boolean propertyExists(java.lang.String name) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
name
- The name
javax.jms.JMSException
- Thrown if an error occurspublic void setBooleanProperty(java.lang.String name, boolean value) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setByteProperty(java.lang.String name, byte value) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setDoubleProperty(java.lang.String name, double value) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setFloatProperty(java.lang.String name, float value) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setIntProperty(java.lang.String name, int value) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSCorrelationID(java.lang.String correlationID) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
correlationID
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSCorrelationIDAsBytes(byte[] correlationID) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
correlationID
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
deliveryMode
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
destination
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSExpiration(long expiration) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
expiration
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSMessageID(java.lang.String id) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
id
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSPriority(int priority) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
priority
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
redelivered
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSReplyTo(javax.jms.Destination replyTo) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
replyTo
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
timestamp
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setJMSType(java.lang.String type) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
type
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setLongProperty(java.lang.String name, long value) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setObjectProperty(java.lang.String name, java.lang.Object value) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setShortProperty(java.lang.String name, short value) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic void setStringProperty(java.lang.String name, java.lang.String value) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
name
- The namevalue
- The value
javax.jms.JMSException
- Thrown if an error occurspublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The other object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |