com.github.smokestack.jms
Class MockMessage

java.lang.Object
  extended by com.github.smokestack.jms.MockMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
MockTextMessage

public class MockMessage
extends Object
implements Message

Author:
gliptak

Field Summary
protected  Map<String,String> headers
           
static String JMSCorrelationID
           
static String JMSDeliveryMode
           
protected  Destination jmsDestination
           
static String JMSDestination
           
static String JMSExpiration
           
static String JMSMessageID
           
static String JMSPriority
           
static String JMSRedelivered
           
protected  Destination jmsReplyTo
           
static String JMSReplyTo
           
static String JMSTimestamp
           
static String JMSType
           
protected  Map<String,String> properties
           
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
MockMessage()
           
 
Method Summary
 void _acknowledge()
           
 void _clearBody()
           
 void _clearProperties()
           
 boolean _getBooleanProperty(String name)
           
 byte _getByteProperty(String name)
           
 double _getDoubleProperty(String name)
           
 float _getFloatProperty(String name)
           
 int _getIntProperty(String name)
           
 String _getJMSCorrelationID()
           
 byte[] _getJMSCorrelationIDAsBytes()
           
 int _getJMSDeliveryMode()
           
 Destination _getJMSDestination()
           
 long _getJMSExpiration()
           
 String _getJMSMessageID()
           
 int _getJMSPriority()
           
 boolean _getJMSRedelivered()
           
 Destination _getJMSReplyTo()
           
 long _getJMSTimestamp()
           
 String _getJMSType()
           
 long _getLongProperty(String name)
           
 Object _getObjectProperty(String name)
           
 Enumeration _getPropertyNames()
           
 short _getShortProperty(String name)
           
 String _getStringProperty(String name)
           
 boolean _propertyExists(String name)
           
 void _setBooleanProperty(String name, boolean value)
           
 void _setByteProperty(String name, byte value)
           
 void _setDoubleProperty(String name, double value)
           
 void _setFloatProperty(String name, float value)
           
 void _setIntProperty(String name, int value)
           
 void _setJMSCorrelationID(String correlationID)
           
 void _setJMSCorrelationIDAsBytes(byte[] correlationID)
           
 void _setJMSDeliveryMode(int deliveryMode)
           
 void _setJMSDestination(Destination destination)
           
 void _setJMSExpiration(long expiration)
           
 void _setJMSMessageID(String id)
           
 void _setJMSPriority(int priority)
           
 void _setJMSRedelivered(boolean redelivered)
           
 void _setJMSReplyTo(Destination destination)
           
 void _setJMSTimestamp(long timestamp)
           
 void _setJMSType(String type)
           
 void _setLongProperty(String name, long value)
           
 void _setObjectProperty(String name, Object value)
           
 void _setShortProperty(String name, short value)
           
 void _setStringProperty(String name, String value)
           
 void acknowledge()
           
 void clearBody()
           
 void clearProperties()
           
 boolean getBooleanProperty(String name)
           
 byte getByteProperty(String name)
           
 double getDoubleProperty(String name)
           
 float getFloatProperty(String name)
           
 int getIntProperty(String name)
           
 String getJMSCorrelationID()
           
 byte[] getJMSCorrelationIDAsBytes()
           
 int getJMSDeliveryMode()
           
 Destination getJMSDestination()
           
 long getJMSExpiration()
           
 String getJMSMessageID()
           
 int getJMSPriority()
           
 boolean getJMSRedelivered()
           
 Destination getJMSReplyTo()
           
 long getJMSTimestamp()
           
 String getJMSType()
           
 long getLongProperty(String name)
           
 Object getObjectProperty(String name)
           
 Enumeration getPropertyNames()
           
 short getShortProperty(String name)
           
 String getStringProperty(String name)
           
 boolean propertyExists(String name)
           
 void setBooleanProperty(String name, boolean value)
           
 void setByteProperty(String name, byte value)
           
 void setDoubleProperty(String name, double value)
           
 void setFloatProperty(String name, float value)
           
 void setIntProperty(String name, int value)
           
 void setJMSCorrelationID(String correlationID)
           
 void setJMSCorrelationIDAsBytes(byte[] correlationID)
           
 void setJMSDeliveryMode(int deliveryMode)
           
 void setJMSDestination(Destination destination)
           
 void setJMSExpiration(long expiration)
           
 void setJMSMessageID(String id)
           
 void setJMSPriority(int priority)
           
 void setJMSRedelivered(boolean redelivered)
           
 void setJMSReplyTo(Destination destination)
           
 void setJMSTimestamp(long timestamp)
           
 void setJMSType(String type)
           
 void setLongProperty(String name, long value)
           
 void setObjectProperty(String name, Object value)
           
 void setShortProperty(String name, short value)
           
 void setStringProperty(String name, String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JMSCorrelationID

public static final String JMSCorrelationID
See Also:
Constant Field Values

JMSDeliveryMode

public static final String JMSDeliveryMode
See Also:
Constant Field Values

JMSDestination

public static final String JMSDestination
See Also:
Constant Field Values

JMSReplyTo

public static final String JMSReplyTo
See Also:
Constant Field Values

JMSExpiration

public static final String JMSExpiration
See Also:
Constant Field Values

JMSMessageID

public static final String JMSMessageID
See Also:
Constant Field Values

JMSPriority

public static final String JMSPriority
See Also:
Constant Field Values

JMSRedelivered

public static final String JMSRedelivered
See Also:
Constant Field Values

JMSTimestamp

public static final String JMSTimestamp
See Also:
Constant Field Values

JMSType

public static final String JMSType
See Also:
Constant Field Values

properties

protected Map<String,String> properties

headers

protected Map<String,String> headers

jmsDestination

protected Destination jmsDestination

jmsReplyTo

protected Destination jmsReplyTo
Constructor Detail

MockMessage

public MockMessage()
Method Detail

acknowledge

public void acknowledge()
                 throws JMSException
Specified by:
acknowledge in interface Message
Throws:
JMSException

_acknowledge

public void _acknowledge()
                  throws JMSException
Throws:
JMSException

clearBody

public void clearBody()
               throws JMSException
Specified by:
clearBody in interface Message
Throws:
JMSException

_clearBody

public void _clearBody()
                throws JMSException
Throws:
JMSException

clearProperties

public void clearProperties()
                     throws JMSException
Specified by:
clearProperties in interface Message
Throws:
JMSException

_clearProperties

public void _clearProperties()
                      throws JMSException
Throws:
JMSException

getBooleanProperty

public boolean getBooleanProperty(String name)
                           throws JMSException
Specified by:
getBooleanProperty in interface Message
Throws:
JMSException

_getBooleanProperty

public boolean _getBooleanProperty(String name)
                            throws JMSException
Throws:
JMSException

getByteProperty

public byte getByteProperty(String name)
                     throws JMSException
Specified by:
getByteProperty in interface Message
Throws:
JMSException

_getByteProperty

public byte _getByteProperty(String name)
                      throws JMSException
Throws:
JMSException

getDoubleProperty

public double getDoubleProperty(String name)
                         throws JMSException
Specified by:
getDoubleProperty in interface Message
Throws:
JMSException

_getDoubleProperty

public double _getDoubleProperty(String name)
                          throws JMSException
Throws:
JMSException

getFloatProperty

public float getFloatProperty(String name)
                       throws JMSException
Specified by:
getFloatProperty in interface Message
Throws:
JMSException

_getFloatProperty

public float _getFloatProperty(String name)
                        throws JMSException
Throws:
JMSException

getIntProperty

public int getIntProperty(String name)
                   throws JMSException
Specified by:
getIntProperty in interface Message
Throws:
JMSException

_getIntProperty

public int _getIntProperty(String name)
                    throws JMSException
Throws:
JMSException

getJMSCorrelationID

public String getJMSCorrelationID()
                           throws JMSException
Specified by:
getJMSCorrelationID in interface Message
Throws:
JMSException

_getJMSCorrelationID

public String _getJMSCorrelationID()
                            throws JMSException
Throws:
JMSException

getJMSCorrelationIDAsBytes

public byte[] getJMSCorrelationIDAsBytes()
                                  throws JMSException
Specified by:
getJMSCorrelationIDAsBytes in interface Message
Throws:
JMSException

_getJMSCorrelationIDAsBytes

public byte[] _getJMSCorrelationIDAsBytes()
                                   throws JMSException
Throws:
JMSException

getJMSDeliveryMode

public int getJMSDeliveryMode()
                       throws JMSException
Specified by:
getJMSDeliveryMode in interface Message
Throws:
JMSException

_getJMSDeliveryMode

public int _getJMSDeliveryMode()
                        throws JMSException
Throws:
JMSException

getJMSDestination

public Destination getJMSDestination()
                              throws JMSException
Specified by:
getJMSDestination in interface Message
Throws:
JMSException

_getJMSDestination

public Destination _getJMSDestination()
                               throws JMSException
Throws:
JMSException

getJMSExpiration

public long getJMSExpiration()
                      throws JMSException
Specified by:
getJMSExpiration in interface Message
Throws:
JMSException

_getJMSExpiration

public long _getJMSExpiration()
                       throws JMSException
Throws:
JMSException

getJMSMessageID

public String getJMSMessageID()
                       throws JMSException
Specified by:
getJMSMessageID in interface Message
Throws:
JMSException

_getJMSMessageID

public String _getJMSMessageID()
                        throws JMSException
Throws:
JMSException

getJMSPriority

public int getJMSPriority()
                   throws JMSException
Specified by:
getJMSPriority in interface Message
Throws:
JMSException

_getJMSPriority

public int _getJMSPriority()
                    throws JMSException
Throws:
JMSException

getJMSRedelivered

public boolean getJMSRedelivered()
                          throws JMSException
Specified by:
getJMSRedelivered in interface Message
Throws:
JMSException

_getJMSRedelivered

public boolean _getJMSRedelivered()
                           throws JMSException
Throws:
JMSException

getJMSReplyTo

public Destination getJMSReplyTo()
                          throws JMSException
Specified by:
getJMSReplyTo in interface Message
Throws:
JMSException

_getJMSReplyTo

public Destination _getJMSReplyTo()
                           throws JMSException
Throws:
JMSException

getJMSTimestamp

public long getJMSTimestamp()
                     throws JMSException
Specified by:
getJMSTimestamp in interface Message
Throws:
JMSException

_getJMSTimestamp

public long _getJMSTimestamp()
                      throws JMSException
Throws:
JMSException

getJMSType

public String getJMSType()
                  throws JMSException
Specified by:
getJMSType in interface Message
Throws:
JMSException

_getJMSType

public String _getJMSType()
                   throws JMSException
Throws:
JMSException

getLongProperty

public long getLongProperty(String name)
                     throws JMSException
Specified by:
getLongProperty in interface Message
Throws:
JMSException

_getLongProperty

public long _getLongProperty(String name)
                      throws JMSException
Throws:
JMSException

getObjectProperty

public Object getObjectProperty(String name)
                         throws JMSException
Specified by:
getObjectProperty in interface Message
Throws:
JMSException

_getObjectProperty

public Object _getObjectProperty(String name)
                          throws JMSException
Throws:
JMSException

getPropertyNames

public Enumeration getPropertyNames()
                             throws JMSException
Specified by:
getPropertyNames in interface Message
Throws:
JMSException

_getPropertyNames

public Enumeration _getPropertyNames()
                              throws JMSException
Throws:
JMSException

getShortProperty

public short getShortProperty(String name)
                       throws JMSException
Specified by:
getShortProperty in interface Message
Throws:
JMSException

_getShortProperty

public short _getShortProperty(String name)
                        throws JMSException
Throws:
JMSException

getStringProperty

public String getStringProperty(String name)
                         throws JMSException
Specified by:
getStringProperty in interface Message
Throws:
JMSException

_getStringProperty

public String _getStringProperty(String name)
                          throws JMSException
Throws:
JMSException

propertyExists

public boolean propertyExists(String name)
                       throws JMSException
Specified by:
propertyExists in interface Message
Throws:
JMSException

_propertyExists

public boolean _propertyExists(String name)
                        throws JMSException
Throws:
JMSException

setBooleanProperty

public void setBooleanProperty(String name,
                               boolean value)
                        throws JMSException
Specified by:
setBooleanProperty in interface Message
Throws:
JMSException

_setBooleanProperty

public void _setBooleanProperty(String name,
                                boolean value)
                         throws JMSException
Throws:
JMSException

setByteProperty

public void setByteProperty(String name,
                            byte value)
                     throws JMSException
Specified by:
setByteProperty in interface Message
Throws:
JMSException

_setByteProperty

public void _setByteProperty(String name,
                             byte value)
                      throws JMSException
Throws:
JMSException

setDoubleProperty

public void setDoubleProperty(String name,
                              double value)
                       throws JMSException
Specified by:
setDoubleProperty in interface Message
Throws:
JMSException

_setDoubleProperty

public void _setDoubleProperty(String name,
                               double value)
                        throws JMSException
Throws:
JMSException

setFloatProperty

public void setFloatProperty(String name,
                             float value)
                      throws JMSException
Specified by:
setFloatProperty in interface Message
Throws:
JMSException

_setFloatProperty

public void _setFloatProperty(String name,
                              float value)
                       throws JMSException
Throws:
JMSException

setIntProperty

public void setIntProperty(String name,
                           int value)
                    throws JMSException
Specified by:
setIntProperty in interface Message
Throws:
JMSException

_setIntProperty

public void _setIntProperty(String name,
                            int value)
                     throws JMSException
Throws:
JMSException

setJMSCorrelationID

public void setJMSCorrelationID(String correlationID)
                         throws JMSException
Specified by:
setJMSCorrelationID in interface Message
Throws:
JMSException

_setJMSCorrelationID

public void _setJMSCorrelationID(String correlationID)
                          throws JMSException
Throws:
JMSException

setJMSCorrelationIDAsBytes

public void setJMSCorrelationIDAsBytes(byte[] correlationID)
                                throws JMSException
Specified by:
setJMSCorrelationIDAsBytes in interface Message
Throws:
JMSException

_setJMSCorrelationIDAsBytes

public void _setJMSCorrelationIDAsBytes(byte[] correlationID)
                                 throws JMSException
Throws:
JMSException

setJMSDeliveryMode

public void setJMSDeliveryMode(int deliveryMode)
                        throws JMSException
Specified by:
setJMSDeliveryMode in interface Message
Throws:
JMSException

_setJMSDeliveryMode

public void _setJMSDeliveryMode(int deliveryMode)
                         throws JMSException
Throws:
JMSException

setJMSDestination

public void setJMSDestination(Destination destination)
                       throws JMSException
Specified by:
setJMSDestination in interface Message
Throws:
JMSException

_setJMSDestination

public void _setJMSDestination(Destination destination)
                        throws JMSException
Throws:
JMSException

setJMSExpiration

public void setJMSExpiration(long expiration)
                      throws JMSException
Specified by:
setJMSExpiration in interface Message
Throws:
JMSException

_setJMSExpiration

public void _setJMSExpiration(long expiration)
                       throws JMSException
Throws:
JMSException

setJMSMessageID

public void setJMSMessageID(String id)
                     throws JMSException
Specified by:
setJMSMessageID in interface Message
Throws:
JMSException

_setJMSMessageID

public void _setJMSMessageID(String id)
                      throws JMSException
Throws:
JMSException

setJMSPriority

public void setJMSPriority(int priority)
                    throws JMSException
Specified by:
setJMSPriority in interface Message
Throws:
JMSException

_setJMSPriority

public void _setJMSPriority(int priority)
                     throws JMSException
Throws:
JMSException

setJMSRedelivered

public void setJMSRedelivered(boolean redelivered)
                       throws JMSException
Specified by:
setJMSRedelivered in interface Message
Throws:
JMSException

_setJMSRedelivered

public void _setJMSRedelivered(boolean redelivered)
                        throws JMSException
Throws:
JMSException

setJMSReplyTo

public void setJMSReplyTo(Destination destination)
                   throws JMSException
Specified by:
setJMSReplyTo in interface Message
Throws:
JMSException

_setJMSReplyTo

public void _setJMSReplyTo(Destination destination)
                    throws JMSException
Throws:
JMSException

setJMSTimestamp

public void setJMSTimestamp(long timestamp)
                     throws JMSException
Specified by:
setJMSTimestamp in interface Message
Throws:
JMSException

_setJMSTimestamp

public void _setJMSTimestamp(long timestamp)
                      throws JMSException
Throws:
JMSException

setJMSType

public void setJMSType(String type)
                throws JMSException
Specified by:
setJMSType in interface Message
Throws:
JMSException

_setJMSType

public void _setJMSType(String type)
                 throws JMSException
Throws:
JMSException

setLongProperty

public void setLongProperty(String name,
                            long value)
                     throws JMSException
Specified by:
setLongProperty in interface Message
Throws:
JMSException

_setLongProperty

public void _setLongProperty(String name,
                             long value)
                      throws JMSException
Throws:
JMSException

setObjectProperty

public void setObjectProperty(String name,
                              Object value)
                       throws JMSException
Specified by:
setObjectProperty in interface Message
Throws:
JMSException

_setObjectProperty

public void _setObjectProperty(String name,
                               Object value)
                        throws JMSException
Throws:
JMSException

setShortProperty

public void setShortProperty(String name,
                             short value)
                      throws JMSException
Specified by:
setShortProperty in interface Message
Throws:
JMSException

_setShortProperty

public void _setShortProperty(String name,
                              short value)
                       throws JMSException
Throws:
JMSException

setStringProperty

public void setStringProperty(String name,
                              String value)
                       throws JMSException
Specified by:
setStringProperty in interface Message
Throws:
JMSException

_setStringProperty

public void _setStringProperty(String name,
                               String value)
                        throws JMSException
Throws:
JMSException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.