org.apache.qpid.client.message
Class NonQpidObjectMessage

java.lang.Object
  extended by org.apache.qpid.client.message.NonQpidObjectMessage
All Implemented Interfaces:
Message, ObjectMessage

public class NonQpidObjectMessage
extends Object
implements ObjectMessage


Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
NonQpidObjectMessage(Session session)
          Allows us to construct a JMS message which does not inherit from the Qpid message superclasses and expand our unit testing of MessageConverter et al
 
Method Summary
 void acknowledge()
           
 void clearBody()
           
 void clearProperties()
           
 boolean getBooleanProperty(String string)
           
 byte getByteProperty(String string)
           
 double getDoubleProperty(String string)
           
 float getFloatProperty(String string)
           
 int getIntProperty(String string)
           
 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 string)
           
 Serializable getObject()
           
 Object getObjectProperty(String string)
           
 Enumeration getPropertyNames()
           
 short getShortProperty(String string)
           
 String getStringProperty(String string)
           
 boolean propertyExists(String string)
           
 void setBooleanProperty(String string, boolean b)
           
 void setByteProperty(String string, byte b)
           
 void setDoubleProperty(String string, double v)
           
 void setFloatProperty(String string, float v)
           
 void setIntProperty(String string, int i)
           
 void setJMSCorrelationID(String string)
           
 void setJMSCorrelationIDAsBytes(byte[] bytes)
           
 void setJMSDeliveryMode(int i)
           
 void setJMSDestination(Destination destination)
           
 void setJMSExpiration(long l)
           
 void setJMSMessageID(String string)
           
 void setJMSPriority(int i)
           
 void setJMSRedelivered(boolean b)
           
 void setJMSReplyTo(Destination destination)
           
 void setJMSTimestamp(long l)
           
 void setJMSType(String string)
           
 void setLongProperty(String string, long l)
           
 void setObject(Serializable serializable)
           
 void setObjectProperty(String string, Object object)
           
 void setShortProperty(String string, short i)
           
 void setStringProperty(String string, String string1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonQpidObjectMessage

public NonQpidObjectMessage(Session session)
                     throws JMSException
Allows us to construct a JMS message which does not inherit from the Qpid message superclasses and expand our unit testing of MessageConverter et al

Parameters:
session -
Throws:
JMSException
Method Detail

getJMSMessageID

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

setJMSMessageID

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

getJMSTimestamp

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

setJMSTimestamp

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

getJMSCorrelationIDAsBytes

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

setJMSCorrelationIDAsBytes

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

setJMSCorrelationID

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

getJMSCorrelationID

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

getJMSReplyTo

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

setJMSReplyTo

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

getJMSDestination

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

setJMSDestination

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

getJMSDeliveryMode

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

setJMSDeliveryMode

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

getJMSRedelivered

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

setJMSRedelivered

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

getJMSType

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

setJMSType

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

getJMSExpiration

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

setJMSExpiration

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

getJMSPriority

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

setJMSPriority

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

clearProperties

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

propertyExists

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

getBooleanProperty

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

getByteProperty

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

getShortProperty

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

getIntProperty

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

getLongProperty

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

getFloatProperty

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

getDoubleProperty

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

getStringProperty

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

getObjectProperty

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

getPropertyNames

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

setBooleanProperty

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

setByteProperty

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

setShortProperty

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

setIntProperty

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

setLongProperty

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

setFloatProperty

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

setDoubleProperty

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

setStringProperty

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

setObjectProperty

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

acknowledge

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

clearBody

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

setObject

public void setObject(Serializable serializable)
               throws JMSException
Specified by:
setObject in interface ObjectMessage
Throws:
JMSException

getObject

public Serializable getObject()
                       throws JMSException
Specified by:
getObject in interface ObjectMessage
Throws:
JMSException


Licensed to the Apache Software Foundation