Package com.webmethods.jms.marshal
Class ReadOnlyMessage
- java.lang.Object
-
- com.webmethods.jms.marshal.ReadOnlyMessage
-
- All Implemented Interfaces:
javax.jms.Message
- Direct Known Subclasses:
ReadOnlyBytesMessage
,ReadOnlyMapMessage
,ReadOnlyObjectMessage
,ReadOnlyStreamMessage
,ReadOnlyTextMessage
public class ReadOnlyMessage extends java.lang.Object implements javax.jms.Message
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.jms.Message
_message
-
Constructor Summary
Constructors Constructor Description ReadOnlyMessage(javax.jms.Message msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledge()
void
clearBody()
void
clearProperties()
static ReadOnlyMessage
createReadOnlyMessage(javax.jms.Message msg)
boolean
getBooleanProperty(java.lang.String propName)
byte
getByteProperty(java.lang.String propName)
double
getDoubleProperty(java.lang.String propName)
float
getFloatProperty(java.lang.String propName)
int
getIntProperty(java.lang.String propName)
java.lang.String
getJMSCorrelationID()
byte[]
getJMSCorrelationIDAsBytes()
int
getJMSDeliveryMode()
javax.jms.Destination
getJMSDestination()
long
getJMSExpiration()
java.lang.String
getJMSMessageID()
int
getJMSPriority()
boolean
getJMSRedelivered()
javax.jms.Destination
getJMSReplyTo()
long
getJMSTimestamp()
java.lang.String
getJMSType()
long
getLongProperty(java.lang.String propName)
java.lang.Object
getObjectProperty(java.lang.String propName)
java.util.Enumeration<java.lang.String>
getPropertyNames()
short
getShortProperty(java.lang.String propName)
java.lang.String
getStringProperty(java.lang.String propName)
boolean
propertyExists(java.lang.String propName)
protected javax.jms.JMSException
readOnlyException()
void
setBooleanProperty(java.lang.String s, boolean b)
void
setByteProperty(java.lang.String s, byte b)
void
setDoubleProperty(java.lang.String s, double v)
void
setFloatProperty(java.lang.String s, float v)
void
setIntProperty(java.lang.String s, int i)
void
setJMSCorrelationID(java.lang.String s)
void
setJMSCorrelationIDAsBytes(byte[] bytes)
void
setJMSDeliveryMode(int i)
void
setJMSDestination(javax.jms.Destination destination)
void
setJMSExpiration(long l)
void
setJMSMessageID(java.lang.String s)
void
setJMSPriority(int i)
void
setJMSRedelivered(boolean b)
void
setJMSReplyTo(javax.jms.Destination destination)
void
setJMSTimestamp(long l)
void
setJMSType(java.lang.String s)
void
setLongProperty(java.lang.String s, long l)
void
setObjectProperty(java.lang.String s, java.lang.Object o)
void
setShortProperty(java.lang.String s, short i)
void
setStringProperty(java.lang.String s, java.lang.String s1)
-
-
-
Method Detail
-
createReadOnlyMessage
public static ReadOnlyMessage createReadOnlyMessage(javax.jms.Message msg)
-
readOnlyException
protected javax.jms.JMSException readOnlyException()
-
getJMSMessageID
public java.lang.String getJMSMessageID() throws javax.jms.JMSException
- Specified by:
getJMSMessageID
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSMessageID
public void setJMSMessageID(java.lang.String s) throws javax.jms.JMSException
- Specified by:
setJMSMessageID
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSTimestamp
public long getJMSTimestamp() throws javax.jms.JMSException
- Specified by:
getJMSTimestamp
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSTimestamp
public void setJMSTimestamp(long l) throws javax.jms.JMSException
- Specified by:
setJMSTimestamp
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSCorrelationIDAsBytes
public byte[] getJMSCorrelationIDAsBytes() throws javax.jms.JMSException
- Specified by:
getJMSCorrelationIDAsBytes
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSCorrelationIDAsBytes
public void setJMSCorrelationIDAsBytes(byte[] bytes) throws javax.jms.JMSException
- Specified by:
setJMSCorrelationIDAsBytes
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSCorrelationID
public void setJMSCorrelationID(java.lang.String s) throws javax.jms.JMSException
- Specified by:
setJMSCorrelationID
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSCorrelationID
public java.lang.String getJMSCorrelationID() throws javax.jms.JMSException
- Specified by:
getJMSCorrelationID
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSReplyTo
public javax.jms.Destination getJMSReplyTo() throws javax.jms.JMSException
- Specified by:
getJMSReplyTo
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSReplyTo
public void setJMSReplyTo(javax.jms.Destination destination) throws javax.jms.JMSException
- Specified by:
setJMSReplyTo
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSDestination
public javax.jms.Destination getJMSDestination() throws javax.jms.JMSException
- Specified by:
getJMSDestination
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSDestination
public void setJMSDestination(javax.jms.Destination destination) throws javax.jms.JMSException
- Specified by:
setJMSDestination
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSDeliveryMode
public int getJMSDeliveryMode() throws javax.jms.JMSException
- Specified by:
getJMSDeliveryMode
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSDeliveryMode
public void setJMSDeliveryMode(int i) throws javax.jms.JMSException
- Specified by:
setJMSDeliveryMode
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSRedelivered
public boolean getJMSRedelivered() throws javax.jms.JMSException
- Specified by:
getJMSRedelivered
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSRedelivered
public void setJMSRedelivered(boolean b) throws javax.jms.JMSException
- Specified by:
setJMSRedelivered
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSType
public java.lang.String getJMSType() throws javax.jms.JMSException
- Specified by:
getJMSType
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSType
public void setJMSType(java.lang.String s) throws javax.jms.JMSException
- Specified by:
setJMSType
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSExpiration
public long getJMSExpiration() throws javax.jms.JMSException
- Specified by:
getJMSExpiration
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSExpiration
public void setJMSExpiration(long l) throws javax.jms.JMSException
- Specified by:
setJMSExpiration
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getJMSPriority
public int getJMSPriority() throws javax.jms.JMSException
- Specified by:
getJMSPriority
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setJMSPriority
public void setJMSPriority(int i) throws javax.jms.JMSException
- Specified by:
setJMSPriority
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
clearProperties
public void clearProperties() throws javax.jms.JMSException
- Specified by:
clearProperties
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
propertyExists
public boolean propertyExists(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
propertyExists
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getBooleanProperty
public boolean getBooleanProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getBooleanProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getByteProperty
public byte getByteProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getByteProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getShortProperty
public short getShortProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getShortProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getIntProperty
public int getIntProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getIntProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getLongProperty
public long getLongProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getLongProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getFloatProperty
public float getFloatProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getFloatProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getDoubleProperty
public double getDoubleProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getDoubleProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getStringProperty
public java.lang.String getStringProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getStringProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getObjectProperty
public java.lang.Object getObjectProperty(java.lang.String propName) throws javax.jms.JMSException
- Specified by:
getObjectProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getPropertyNames
public java.util.Enumeration<java.lang.String> getPropertyNames() throws javax.jms.JMSException
- Specified by:
getPropertyNames
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setBooleanProperty
public void setBooleanProperty(java.lang.String s, boolean b) throws javax.jms.JMSException
- Specified by:
setBooleanProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setByteProperty
public void setByteProperty(java.lang.String s, byte b) throws javax.jms.JMSException
- Specified by:
setByteProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setShortProperty
public void setShortProperty(java.lang.String s, short i) throws javax.jms.JMSException
- Specified by:
setShortProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setIntProperty
public void setIntProperty(java.lang.String s, int i) throws javax.jms.JMSException
- Specified by:
setIntProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setLongProperty
public void setLongProperty(java.lang.String s, long l) throws javax.jms.JMSException
- Specified by:
setLongProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setFloatProperty
public void setFloatProperty(java.lang.String s, float v) throws javax.jms.JMSException
- Specified by:
setFloatProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setDoubleProperty
public void setDoubleProperty(java.lang.String s, double v) throws javax.jms.JMSException
- Specified by:
setDoubleProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setStringProperty
public void setStringProperty(java.lang.String s, java.lang.String s1) throws javax.jms.JMSException
- Specified by:
setStringProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setObjectProperty
public void setObjectProperty(java.lang.String s, java.lang.Object o) throws javax.jms.JMSException
- Specified by:
setObjectProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
acknowledge
public void acknowledge() throws javax.jms.JMSException
- Specified by:
acknowledge
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
clearBody
public void clearBody() throws javax.jms.JMSException
- Specified by:
clearBody
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
-