|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockejb.jms.MessageImpl
Message
implementation.
Message
Field Summary |
Fields inherited from interface javax.jms.Message |
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
Constructor Summary | |
MessageImpl()
Constructs empty message. |
|
MessageImpl(javax.jms.Message msg)
Constructs new MessageImpl by copying all
header fields and properties from the specified message msg |
Method Summary | |
void |
acknowledge()
Does nothing. |
void |
clearBody()
|
void |
clearProperties()
|
boolean |
getBooleanProperty(java.lang.String name)
|
byte |
getByteProperty(java.lang.String name)
|
double |
getDoubleProperty(java.lang.String name)
|
float |
getFloatProperty(java.lang.String name)
|
int |
getIntProperty(java.lang.String name)
|
java.lang.String |
getJMSCorrelationID()
|
byte[] |
getJMSCorrelationIDAsBytes()
Not supported. |
int |
getJMSDeliveryMode()
|
javax.jms.Destination |
getJMSDestination()
|
long |
getJMSExpiration()
|
java.lang.String |
getJMSMessageID()
|
int |
getJMSPriority()
|
boolean |
getJMSRedelivered()
Always returns false |
javax.jms.Destination |
getJMSReplyTo()
|
long |
getJMSTimestamp()
|
java.lang.String |
getJMSType()
|
long |
getLongProperty(java.lang.String name)
|
java.lang.Object |
getObjectProperty(java.lang.String name)
|
java.util.Enumeration |
getPropertyNames()
|
short |
getShortProperty(java.lang.String name)
|
java.lang.String |
getStringProperty(java.lang.String name)
|
boolean |
propertyExists(java.lang.String propertyName)
|
void |
setBooleanProperty(java.lang.String name,
boolean value)
|
void |
setByteProperty(java.lang.String name,
byte value)
|
void |
setDoubleProperty(java.lang.String name,
double value)
|
void |
setFloatProperty(java.lang.String name,
float value)
|
void |
setIntProperty(java.lang.String name,
int value)
|
void |
setJMSCorrelationID(java.lang.String correlationId)
|
void |
setJMSCorrelationIDAsBytes(byte[] arg0)
Not supported. |
void |
setJMSDeliveryMode(int deliveryMode)
|
void |
setJMSDestination(javax.jms.Destination destination)
|
void |
setJMSExpiration(long expiration)
|
void |
setJMSMessageID(java.lang.String messageId)
|
void |
setJMSPriority(int priority)
|
void |
setJMSRedelivered(boolean redelivered)
Does nothing. |
void |
setJMSReplyTo(javax.jms.Destination replyTo)
|
void |
setJMSTimestamp(long timestamp)
|
void |
setJMSType(java.lang.String type)
|
void |
setLongProperty(java.lang.String name,
long value)
|
void |
setObjectProperty(java.lang.String name,
java.lang.Object value)
|
void |
setPropertiesNotWriteable()
|
void |
setShortProperty(java.lang.String name,
short value)
|
void |
setStringProperty(java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageImpl()
public MessageImpl(javax.jms.Message msg) throws javax.jms.JMSException
MessageImpl
by copying all
header fields and properties from the specified message msg
msg
- Method Detail |
public java.lang.String getJMSMessageID() throws javax.jms.JMSException
getJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSMessageID()
public void setJMSMessageID(java.lang.String messageId) throws javax.jms.JMSException
setJMSMessageID
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSMessageID(java.lang.String)
public long getJMSTimestamp() throws javax.jms.JMSException
getJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSTimestamp()
public void setJMSTimestamp(long timestamp) throws javax.jms.JMSException
setJMSTimestamp
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSTimestamp(long)
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
getJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSCorrelationIDAsBytes()
public void setJMSCorrelationIDAsBytes(byte[] arg0) throws javax.jms.JMSException
setJMSCorrelationIDAsBytes
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSCorrelationIDAsBytes(byte[])
public void setJMSCorrelationID(java.lang.String correlationId) throws javax.jms.JMSException
setJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSCorrelationID(java.lang.String)
public java.lang.String getJMSCorrelationID() throws javax.jms.JMSException
getJMSCorrelationID
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSCorrelationID()
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
getJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSReplyTo()
public void setJMSReplyTo(javax.jms.Destination replyTo) throws javax.jms.JMSException
setJMSReplyTo
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSReplyTo(javax.jms.Destination)
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
getJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSDestination()
public void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
setJMSDestination
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSDestination(javax.jms.Destination)
public int getJMSDeliveryMode() throws javax.jms.JMSException
getJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSDeliveryMode()
public void setJMSDeliveryMode(int deliveryMode) throws javax.jms.JMSException
setJMSDeliveryMode
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSDeliveryMode(int)
public boolean getJMSRedelivered() throws javax.jms.JMSException
false
getJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSRedelivered()
public void setJMSRedelivered(boolean redelivered) throws javax.jms.JMSException
setJMSRedelivered
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSRedelivered(boolean)
public java.lang.String getJMSType() throws javax.jms.JMSException
getJMSType
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSType()
public void setJMSType(java.lang.String type) throws javax.jms.JMSException
setJMSType
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSType(java.lang.String)
public long getJMSExpiration() throws javax.jms.JMSException
getJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSExpiration()
public void setJMSExpiration(long expiration) throws javax.jms.JMSException
setJMSExpiration
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSExpiration(long)
public int getJMSPriority() throws javax.jms.JMSException
getJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
Message.getJMSPriority()
public void setJMSPriority(int priority) throws javax.jms.JMSException
setJMSPriority
in interface javax.jms.Message
javax.jms.JMSException
Message.setJMSPriority(int)
public void clearProperties() throws javax.jms.JMSException
clearProperties
in interface javax.jms.Message
javax.jms.JMSException
Message.clearProperties()
public boolean propertyExists(java.lang.String propertyName) throws javax.jms.JMSException
propertyExists
in interface javax.jms.Message
javax.jms.JMSException
Message.propertyExists(java.lang.String)
public boolean getBooleanProperty(java.lang.String name) throws javax.jms.JMSException
getBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getBooleanProperty(java.lang.String)
public byte getByteProperty(java.lang.String name) throws javax.jms.JMSException
getByteProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getByteProperty(java.lang.String)
public short getShortProperty(java.lang.String name) throws javax.jms.JMSException
getShortProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getShortProperty(java.lang.String)
public int getIntProperty(java.lang.String name) throws javax.jms.JMSException
getIntProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getIntProperty(java.lang.String)
public long getLongProperty(java.lang.String name) throws javax.jms.JMSException
getLongProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getLongProperty(java.lang.String)
public float getFloatProperty(java.lang.String name) throws javax.jms.JMSException
getFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getFloatProperty(java.lang.String)
public double getDoubleProperty(java.lang.String name) throws javax.jms.JMSException
getDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getDoubleProperty(java.lang.String)
public java.lang.String getStringProperty(java.lang.String name) throws javax.jms.JMSException
getStringProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getStringProperty(java.lang.String)
public java.lang.Object getObjectProperty(java.lang.String name) throws javax.jms.JMSException
getObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.getObjectProperty(java.lang.String)
public java.util.Enumeration getPropertyNames() throws javax.jms.JMSException
getPropertyNames
in interface javax.jms.Message
javax.jms.JMSException
Message.getPropertyNames()
public void setBooleanProperty(java.lang.String name, boolean value) throws javax.jms.JMSException
setBooleanProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setBooleanProperty(java.lang.String, boolean)
public void setByteProperty(java.lang.String name, byte value) throws javax.jms.JMSException
setByteProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setByteProperty(java.lang.String, byte)
public void setShortProperty(java.lang.String name, short value) throws javax.jms.JMSException
setShortProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setShortProperty(java.lang.String, short)
public void setIntProperty(java.lang.String name, int value) throws javax.jms.JMSException
setIntProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setIntProperty(java.lang.String, int)
public void setLongProperty(java.lang.String name, long value) throws javax.jms.JMSException
setLongProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setLongProperty(java.lang.String, long)
public void setFloatProperty(java.lang.String name, float value) throws javax.jms.JMSException
setFloatProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setFloatProperty(java.lang.String, float)
public void setDoubleProperty(java.lang.String name, double value) throws javax.jms.JMSException
setDoubleProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setDoubleProperty(java.lang.String, double)
public void setStringProperty(java.lang.String name, java.lang.String value) throws javax.jms.JMSException
setStringProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setStringProperty(java.lang.String, java.lang.String)
public void setObjectProperty(java.lang.String name, java.lang.Object value) throws javax.jms.JMSException
setObjectProperty
in interface javax.jms.Message
javax.jms.JMSException
Message.setObjectProperty(java.lang.String, java.lang.Object)
public void acknowledge() throws javax.jms.JMSException
acknowledge
in interface javax.jms.Message
javax.jms.JMSException
Message.acknowledge()
public void clearBody() throws javax.jms.JMSException
clearBody
in interface javax.jms.Message
javax.jms.JMSException
Message.clearBody()
public void setPropertiesNotWriteable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |