Package dk.netarkivet.common.distribute
Class JMSConnectionMockupMQ.TestObjectMessage
- java.lang.Object
-
- dk.netarkivet.common.distribute.JMSConnectionMockupMQ.TestObjectMessage
-
- All Implemented Interfaces:
java.io.Serializable
,javax.jms.Message
,javax.jms.ObjectMessage
- Enclosing class:
- JMSConnectionMockupMQ
public static class JMSConnectionMockupMQ.TestObjectMessage extends java.lang.Object implements javax.jms.ObjectMessage, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
id
protected java.io.Serializable
serializable
-
Constructor Summary
Constructors Constructor Description TestObjectMessage(java.io.Serializable serializable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acknowledge()
void
clearBody()
void
clearProperties()
boolean
getBooleanProperty(java.lang.String s)
byte
getByteProperty(java.lang.String s)
double
getDoubleProperty(java.lang.String s)
float
getFloatProperty(java.lang.String s)
int
getIntProperty(java.lang.String s)
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 s)
java.io.Serializable
getObject()
java.lang.Object
getObjectProperty(java.lang.String s)
java.util.Enumeration
getPropertyNames()
short
getShortProperty(java.lang.String s)
java.lang.String
getStringProperty(java.lang.String s)
boolean
propertyExists(java.lang.String s)
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
setObject(java.io.Serializable object)
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)
java.lang.String
toString()
-
-
-
Field Detail
-
serializable
protected java.io.Serializable serializable
-
id
public java.lang.String id
-
-
Constructor Detail
-
TestObjectMessage
public TestObjectMessage(java.io.Serializable serializable)
-
-
Method Detail
-
getObject
public java.io.Serializable getObject() throws javax.jms.JMSException
- Specified by:
getObject
in interfacejavax.jms.ObjectMessage
- Throws:
javax.jms.JMSException
-
getJMSMessageID
public java.lang.String getJMSMessageID() throws javax.jms.JMSException
- Specified by:
getJMSMessageID
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
setObject
public void setObject(java.io.Serializable object) throws javax.jms.JMSException
- Specified by:
setObject
in interfacejavax.jms.ObjectMessage
- 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
-
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
-
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 s) throws javax.jms.JMSException
- Specified by:
propertyExists
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getBooleanProperty
public boolean getBooleanProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getBooleanProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getByteProperty
public byte getByteProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getByteProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getShortProperty
public short getShortProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getShortProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getIntProperty
public int getIntProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getIntProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getLongProperty
public long getLongProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getLongProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getFloatProperty
public float getFloatProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getFloatProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getDoubleProperty
public double getDoubleProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getDoubleProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getStringProperty
public java.lang.String getStringProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getStringProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getObjectProperty
public java.lang.Object getObjectProperty(java.lang.String s) throws javax.jms.JMSException
- Specified by:
getObjectProperty
in interfacejavax.jms.Message
- Throws:
javax.jms.JMSException
-
getPropertyNames
public java.util.Enumeration 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-