activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1338940 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/commands/ cms/
Date Tue, 15 May 2012 23:05:49 GMT
Author: tabish
Date: Tue May 15 23:05:48 2012
New Revision: 1338940

URL: http://svn.apache.org/viewvc?rev=1338940&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQCPP-400

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/Message.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQBytesMessage.cpp
Tue May 15 23:05:48 2012
@@ -617,24 +617,25 @@ void ActiveMQBytesMessage::initializeRea
 
     this->failIfWriteOnlyBody();
     try {
-        if( this->dataIn.get() == NULL ) {
-            InputStream* is = new ByteArrayInputStream( this->getContent() );
 
-            if( this->isCompressed() ) {
+        if (this->dataIn.get() == NULL) {
+            InputStream* is = new ByteArrayInputStream(this->getContent());
 
-                try{
-                    DataInputStream dis( is );
+            if (this->isCompressed()) {
+
+                try {
+                    DataInputStream dis(is);
                     this->length = dis.readInt();
-                } catch( IOException& ex ) {
-                    CMSExceptionSupport::create( ex );
+                } catch (IOException& ex) {
+                    throw CMSExceptionSupport::create(ex);
                 }
 
-                is = new InflaterInputStream( is, true );
+                is = new InflaterInputStream(is, true);
 
             } else {
-                this->length = (int)this->getContent().size();
+                this->length = (int) this->getContent().size();
             }
-            this->dataIn.reset( new DataInputStream( is, true ) );
+            this->dataIn.reset(new DataInputStream(is, true));
         }
     }
     AMQ_CATCH_ALL_THROW_CMSEXCEPTION()

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.cpp
Tue May 15 23:05:48 2012
@@ -210,15 +210,54 @@ std::vector<std::string> ActiveMQMapMess
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-bool ActiveMQMapMessage::itemExists( const std::string& name ) const {
+bool ActiveMQMapMessage::itemExists(const std::string& name) const {
 
-    try{
+    try {
         return getMap().containsKey( name );
     }
     AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+cms::Message::ValueType ActiveMQMapMessage::getValueType(const std::string& key) const
{
+
+    try {
+        util::PrimitiveValueNode::PrimitiveType type = this->getMap().getValueType(key);
+
+        switch(type) {
+            case util::PrimitiveValueNode::NULL_TYPE:
+                return cms::Message::NULL_TYPE;
+            case util::PrimitiveValueNode::BOOLEAN_TYPE:
+                return cms::Message::BOOLEAN_TYPE;
+            case util::PrimitiveValueNode::BYTE_TYPE:
+                return cms::Message::BYTE_TYPE;
+            case util::PrimitiveValueNode::CHAR_TYPE:
+                return cms::Message::CHAR_TYPE;
+            case util::PrimitiveValueNode::SHORT_TYPE:
+                return cms::Message::SHORT_TYPE;
+            case util::PrimitiveValueNode::INTEGER_TYPE:
+                return cms::Message::INTEGER_TYPE;
+            case util::PrimitiveValueNode::LONG_TYPE:
+                return cms::Message::LONG_TYPE;
+            case util::PrimitiveValueNode::DOUBLE_TYPE:
+                return cms::Message::DOUBLE_TYPE;
+            case util::PrimitiveValueNode::FLOAT_TYPE:
+                return cms::Message::FLOAT_TYPE;
+            case util::PrimitiveValueNode::STRING_TYPE:
+            case util::PrimitiveValueNode::BIG_STRING_TYPE:
+                return cms::Message::STRING_TYPE;
+            case util::PrimitiveValueNode::BYTE_ARRAY_TYPE:
+                return cms::Message::BYTE_ARRAY_TYPE;
+            default:
+                break;
+        }
+
+        return cms::Message::UNKNOWN_TYPE;
+    }
+    AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
+}
+
+////////////////////////////////////////////////////////////////////////////////
 bool ActiveMQMapMessage::getBoolean( const std::string& name ) const {
 
     try{

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMapMessage.h
Tue May 15 23:05:48 2012
@@ -102,6 +102,11 @@ namespace commands{
         /**
          * {@inheritDoc}
          */
+        virtual cms::Message::ValueType getValueType(const std::string& key) const;
+
+        /**
+         * {@inheritDoc}
+         */
         virtual bool getBoolean( const std::string& name ) const;
 
         /**

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/commands/ActiveMQMessageTemplate.h
Tue May 15 23:05:48 2012
@@ -118,8 +118,44 @@ namespace commands {
             AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
         }
 
-        virtual bool getBooleanProperty(const std::string& name) const {
+        virtual cms::Message::ValueType getPropertyValueType(const std::string& name)
const {
+            try {
+                util::PrimitiveValueNode::PrimitiveType type = this->getMessageProperties().getValueType(name);
+
+                // Just map the values that are actually allowed in Message Properties, the
others
+                // all qualify as unknown.
+                switch(type) {
+                    case util::PrimitiveValueNode::NULL_TYPE:
+                        return cms::Message::NULL_TYPE;
+                    case util::PrimitiveValueNode::BOOLEAN_TYPE:
+                        return cms::Message::BOOLEAN_TYPE;
+                    case util::PrimitiveValueNode::BYTE_TYPE:
+                        return cms::Message::BYTE_TYPE;
+                    case util::PrimitiveValueNode::CHAR_TYPE:
+                        return cms::Message::CHAR_TYPE;
+                    case util::PrimitiveValueNode::SHORT_TYPE:
+                        return cms::Message::SHORT_TYPE;
+                    case util::PrimitiveValueNode::INTEGER_TYPE:
+                        return cms::Message::INTEGER_TYPE;
+                    case util::PrimitiveValueNode::LONG_TYPE:
+                        return cms::Message::LONG_TYPE;
+                    case util::PrimitiveValueNode::DOUBLE_TYPE:
+                        return cms::Message::DOUBLE_TYPE;
+                    case util::PrimitiveValueNode::FLOAT_TYPE:
+                        return cms::Message::FLOAT_TYPE;
+                    case util::PrimitiveValueNode::STRING_TYPE:
+                    case util::PrimitiveValueNode::BIG_STRING_TYPE:
+                        return cms::Message::STRING_TYPE;
+                    default:
+                        break;
+                }
+
+                return cms::Message::UNKNOWN_TYPE;
+            }
+            AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
+        }
 
+        virtual bool getBooleanProperty(const std::string& name) const {
             try {
                 return this->propertiesInterceptor->getBooleanProperty(name);
             } catch (decaf::lang::exceptions::UnsupportedOperationException& ex) {
@@ -129,7 +165,6 @@ namespace commands {
         }
 
         virtual unsigned char getByteProperty(const std::string& name) const {
-
             try {
                 return this->propertiesInterceptor->getByteProperty(name);
             } catch (decaf::lang::exceptions::UnsupportedOperationException& ex) {

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MapMessage.h Tue May 15 23:05:48
2012
@@ -25,7 +25,7 @@
 #include <cms/MessageFormatException.h>
 #include <cms/MessageNotWriteableException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * A MapMessage object is used to send a set of name-value pairs. The
@@ -68,7 +68,7 @@ namespace cms{
      *
      * @since 1.0
      */
-    class CMS_API MapMessage : public Message {
+    class CMS_API MapMessage: public Message {
     public:
 
         virtual ~MapMessage();
@@ -91,7 +91,7 @@ namespace cms{
          *
          * @throws CMSException - if the operation fails due to an internal error.
          */
-        virtual std::vector< std::string > getMapNames() const = 0;
+        virtual std::vector<std::string> getMapNames() const = 0;
 
         /**
          * Indicates whether an item exists in this MapMessage object.
@@ -102,7 +102,22 @@ namespace cms{
          *
          * @throws CMSException - if the operation fails due to an internal error.
          */
-        virtual bool itemExists( const std::string& name ) const = 0;
+        virtual bool itemExists(const std::string& name) const = 0;
+
+        /**
+         * Returns the value type for the given key mapping.  The CMS provider
+         * should translate all internal type identifiers into the CMS Value types
+         * returning UNKNOWN_TYPE for any specialized types not directly supported
+         * in the CMS API.
+         *
+         * @param key
+         *      The string key used to look up the value type mapping.
+         *
+         * @returns The ValueType contained in the given mapping.
+         *
+         * @throws CMSException if no mapping exists that matches the requested key.
+         */
+        virtual ValueType getValueType(const std::string& key) const = 0;
 
         /**
          * Returns the Boolean value of the Specified name
@@ -113,7 +128,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual bool getBoolean( const std::string& name ) const = 0;
+        virtual bool getBoolean(const std::string& name) const = 0;
 
         /**
          * Sets a boolean value with the specified name into the Map.
@@ -126,7 +141,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWritableException - if the Message is in Read-only Mode.
          */
-        virtual void setBoolean( const std::string& name, bool value ) = 0;
+        virtual void setBoolean(const std::string& name, bool value) = 0;
 
         /**
          * Returns the Byte value of the Specified name
@@ -137,7 +152,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual unsigned char getByte( const std::string& name ) const = 0;
+        virtual unsigned char getByte(const std::string& name) const = 0;
 
         /**
          * Sets a Byte value with the specified name into the Map.
@@ -150,7 +165,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setByte( const std::string& name, unsigned char value ) = 0;
+        virtual void setByte(const std::string& name, unsigned char value) = 0;
 
         /**
          * Returns the Bytes value of the Specified name
@@ -161,7 +176,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual std::vector<unsigned char> getBytes( const std::string& name )
const = 0;
+        virtual std::vector<unsigned char> getBytes(const std::string& name) const
= 0;
 
         /**
          * Sets a Bytes value with the specified name into the Map.
@@ -174,8 +189,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setBytes( const std::string& name,
-                               const std::vector<unsigned char>& value ) = 0;
+        virtual void setBytes(const std::string& name, const std::vector<unsigned
char>& value) = 0;
 
         /**
          * Returns the Char value of the Specified name
@@ -186,7 +200,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual char getChar( const std::string& name ) const = 0;
+        virtual char getChar(const std::string& name) const = 0;
 
         /**
          * Sets a Char value with the specified name into the Map.
@@ -199,7 +213,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setChar( const std::string& name, char value ) = 0;
+        virtual void setChar(const std::string& name, char value) = 0;
 
         /**
          * Returns the Double value of the Specified name
@@ -210,7 +224,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual double getDouble( const std::string& name ) const = 0;
+        virtual double getDouble(const std::string& name) const = 0;
 
         /**
          * Sets a Double value with the specified name into the Map.
@@ -223,7 +237,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setDouble( const std::string& name, double value ) = 0;
+        virtual void setDouble(const std::string& name, double value) = 0;
 
         /**
          * Returns the Float value of the Specified name
@@ -234,7 +248,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual float getFloat( const std::string& name ) const = 0;
+        virtual float getFloat(const std::string& name) const = 0;
 
         /**
          * Sets a Float value with the specified name into the Map.
@@ -247,7 +261,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setFloat( const std::string& name, float value ) = 0;
+        virtual void setFloat(const std::string& name, float value) = 0;
 
         /**
          * Returns the Int value of the Specified name
@@ -258,7 +272,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual int getInt( const std::string& name ) const = 0;
+        virtual int getInt(const std::string& name) const = 0;
 
         /**
          * Sets a Int value with the specified name into the Map.
@@ -271,7 +285,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setInt( const std::string& name, int value ) = 0;
+        virtual void setInt(const std::string& name, int value) = 0;
 
         /**
          * Returns the Long value of the Specified name
@@ -282,7 +296,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual long long getLong( const std::string& name ) const = 0;
+        virtual long long getLong(const std::string& name) const = 0;
 
         /**
          * Sets a Long value with the specified name into the Map.
@@ -295,7 +309,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setLong( const std::string& name, long long value ) = 0;
+        virtual void setLong(const std::string& name, long long value) = 0;
 
         /**
          * Returns the Short value of the Specified name
@@ -306,7 +320,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual short getShort( const std::string& name ) const = 0;
+        virtual short getShort(const std::string& name) const = 0;
 
         /**
          * Sets a Short value with the specified name into the Map.
@@ -319,7 +333,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setShort( const std::string& name, short value ) = 0;
+        virtual void setShort(const std::string& name, short value) = 0;
 
         /**
          * Returns the String value of the Specified name
@@ -330,7 +344,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageFormatException - if this type conversion is invalid.
          */
-        virtual std::string getString( const std::string& name ) const = 0;
+        virtual std::string getString(const std::string& name) const = 0;
 
         /**
          * Sets a String value with the specified name into the Map.
@@ -343,7 +357,7 @@ namespace cms{
          * @throws CMSException - if the operation fails due to an internal error.
          * @throws MessageNotWriteableException - if the Message is in Read-only Mode.
          */
-        virtual void setString( const std::string& name, const std::string& value
) = 0;
+        virtual void setString(const std::string& name, const std::string& value)
= 0;
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/Message.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/Message.h?rev=1338940&r1=1338939&r2=1338940&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/Message.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/Message.h Tue May 15 23:05:48 2012
@@ -27,7 +27,7 @@
 #include <cms/MessageFormatException.h>
 #include <cms/MessageNotWriteableException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * Root of all messages.  As in JMS, a message is comprised of 3 parts:
@@ -103,6 +103,27 @@ namespace cms{
          */
         static const long long DEFAULT_TIME_TO_LIVE;
 
+        /**
+         * Defines the Type Identifiers used to identify the type contained within a specific
+         * Message property or MapMessage keyed value.  CMS Providers can store other types
in
+         * their internal representations, which should map to the UNKNOWN_TYPE from the
CMS
+         * API.
+         */
+        enum ValueType {
+            NULL_TYPE = 0,
+            BOOLEAN_TYPE = 1,
+            BYTE_TYPE = 2,
+            CHAR_TYPE = 3,
+            SHORT_TYPE = 4,
+            INTEGER_TYPE = 5,
+            LONG_TYPE = 6,
+            DOUBLE_TYPE = 7,
+            FLOAT_TYPE = 8,
+            STRING_TYPE = 9,
+            BYTE_ARRAY_TYPE = 10,
+            UNKNOWN_TYPE = 11
+        };
+
     public:
 
         virtual ~Message();
@@ -184,6 +205,21 @@ namespace cms{
         virtual bool propertyExists(const std::string& name) const = 0;
 
         /**
+         * Returns the value type for the given property key.  The CMS provider
+         * should translate all internal type identifiers into the CMS Value types
+         * returning UNKNOWN_TYPE for any specialized types not directly supported
+         * in the CMS API.
+         *
+         * @param name
+         *      The string property name key used to look up the value type.
+         *
+         * @returns The ValueType contained in the given property.
+         *
+         * @throws CMSException if no property exists that matches the requested key.
+         */
+        virtual ValueType getPropertyValueType(const std::string& name) const = 0;
+
+        /**
          * Gets a boolean property.
          *
          * @param name
@@ -290,7 +326,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setBooleanProperty( const std::string& name, bool value ) = 0;
+        virtual void setBooleanProperty(const std::string& name, bool value) = 0;
 
         /**
          * Sets a byte property.
@@ -303,7 +339,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setByteProperty( const std::string& name, unsigned char value )
= 0;
+        virtual void setByteProperty(const std::string& name, unsigned char value) =
0;
 
         /**
          * Sets a double property.
@@ -316,7 +352,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setDoubleProperty( const std::string& name, double value ) = 0;
+        virtual void setDoubleProperty(const std::string& name, double value) = 0;
 
         /**
          * Sets a float property.
@@ -328,7 +364,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setFloatProperty( const std::string& name, float value ) = 0;
+        virtual void setFloatProperty(const std::string& name, float value) = 0;
 
         /**
          * Sets a int property.
@@ -341,7 +377,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setIntProperty( const std::string& name, int value ) = 0;
+        virtual void setIntProperty(const std::string& name, int value) = 0;
 
         /**
          * Sets a long property.
@@ -354,7 +390,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setLongProperty( const std::string& name, long long value ) = 0;
+        virtual void setLongProperty(const std::string& name, long long value) = 0;
 
         /**
          * Sets a short property.
@@ -367,7 +403,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setShortProperty( const std::string& name, short value ) = 0;
+        virtual void setShortProperty(const std::string& name, short value) = 0;
 
         /**
          * Sets a string property.
@@ -380,7 +416,7 @@ namespace cms{
          * @throws CMSException - if the name is an empty string.
          * @throws MessageNotWriteableException - if properties are read-only
          */
-        virtual void setStringProperty( const std::string& name, const std::string&
value ) = 0;
+        virtual void setStringProperty(const std::string& name, const std::string&
value) = 0;
 
         /**
          * Gets the correlation ID for the message.
@@ -430,7 +466,7 @@ namespace cms{
          *
          * @throws CMSException - if an internal error occurs.
          */
-        virtual void setCMSCorrelationID( const std::string& correlationId ) = 0;
+        virtual void setCMSCorrelationID(const std::string& correlationId) = 0;
 
         /**
          * Gets the DeliveryMode for this message
@@ -452,7 +488,7 @@ namespace cms{
          *
          * @throws CMSException - if an internal error occurs.
          */
-        virtual void setCMSDeliveryMode( int mode ) = 0;
+        virtual void setCMSDeliveryMode(int mode) = 0;
 
         /**
          * Gets the Destination object for this message.



Mime
View raw message