activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r499198 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
Date Wed, 24 Jan 2007 00:50:04 GMT
Author: tabish
Date: Tue Jan 23 16:50:03 2007
New Revision: 499198

URL: http://svn.apache.org/viewvc?view=rev&rev=499198
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h?view=diff&rev=499198&r1=499197&r2=499198
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQMessageBase.h
Tue Jan 23 16:50:03 2007
@@ -53,7 +53,7 @@
          * members, overwriting any existing data.
          * @return src - Source Object
          */
-        virtual void copyDataStructure( const DataStructure* src ) {            
+        virtual void copyDataStructure( const DataStructure* src ) {        
             Message::copyDataStructure( src );
         }
 
@@ -150,13 +150,15 @@
          * Clears out the body of the message.  This does not clear the
          * headers or properties.
          */
-        virtual void clearBody();
+        virtual void clearBody() {
+            this->setContent( std::vector<unsigned char>() );
+        }
         
         /**
          * Clears the message properties.  Does not clear the body or
          * header values.
          */
-        virtual void clearProperties();
+        virtual void clearProperties() {}
         
         /**
          * Retrieves the propery names.
@@ -361,8 +363,8 @@
          * Sets the Destination for this message
          * @param destination - Destination Object
          */
-        virtual void setCMSDestination( const cms::Destination* destination AMQCPP_UNUSED)
{
- //           this->setDestination( destination );
+        virtual void setCMSDestination( const cms::Destination* destination ) {
+            this->setDestination( destination );
         }
       
         /**
@@ -429,13 +431,17 @@
          * Gets the CMS Reply To Address for this Message
          * @return Reply To Value
          */
-        virtual const cms::Destination* getCMSReplyTo(void) const;
+        virtual const cms::Destination* getCMSReplyTo(void) const {
+            return this->getReplyTo();
+        }
       
         /**
          * Sets the CMS Reply To Address for this message
          * @param id - Reply To value
          */
-        virtual void setCMSReplyTo( const cms::Destination* destination );
+        virtual void setCMSReplyTo( const cms::Destination* destination ) {
+            this->setRepyTo( destination );
+        }
 
         /**
          * Gets the Time Stamp for this Message



Mime
View raw message