18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQMESSAGETEMPLATE_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQMESSAGETEMPLATE_H_
44 std::auto_ptr<wireformat::openwire::utils::MessagePropertyInterceptor> propertiesInterceptor;
86 return thisMsgId !=
NULL && otherMsgId !=
NULL && otherMsgId->equals(thisMsgId.
get());
93 this->
setContent(std::vector<unsigned char>());
162 return this->propertiesInterceptor->getBooleanProperty(name);
171 return this->propertiesInterceptor->getByteProperty(name);
181 return this->propertiesInterceptor->getDoubleProperty(name);
191 return this->propertiesInterceptor->getFloatProperty(name);
201 return this->propertiesInterceptor->getIntProperty(name);
211 return this->propertiesInterceptor->getLongProperty(name);
221 return this->propertiesInterceptor->getShortProperty(name);
231 return this->propertiesInterceptor->getStringProperty(name);
246 this->propertiesInterceptor->setBooleanProperty(name, value);
259 this->propertiesInterceptor->setByteProperty(name, value);
272 this->propertiesInterceptor->setDoubleProperty(name, value);
285 this->propertiesInterceptor->setFloatProperty(name, value);
298 this->propertiesInterceptor->setIntProperty(name, value);
311 this->propertiesInterceptor->setLongProperty(name, value);
324 this->propertiesInterceptor->setShortProperty(name, value);
337 this->propertiesInterceptor->setStringProperty(name, value);
398 id->setTextView(value);
#define AMQ_CATCH_ALL_THROW_CMSEXCEPTION()
Macro for catching an exception of one type and then re-throwing as a Basic CMSException,...
Definition CMSExceptionSupport.h:73
#define AMQCPP_API
Definition Config.h:30
Definition ActiveMQDestination.h:39
virtual long long getCMSTimestamp() const
Definition ActiveMQMessageTemplate.h:435
virtual int getCMSDeliveryMode() const
Definition ActiveMQMessageTemplate.h:350
virtual void setLongProperty(const std::string &name, long long value)
Definition ActiveMQMessageTemplate.h:303
virtual void setCMSRedelivered(bool redelivered AMQCPP_UNUSED)
Definition ActiveMQMessageTemplate.h:415
virtual void setCMSTimestamp(long long timeStamp)
Definition ActiveMQMessageTemplate.h:439
virtual long long getLongProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:208
virtual long long getCMSExpiration() const
Definition ActiveMQMessageTemplate.h:375
virtual unsigned char getByteProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:169
virtual void setCMSMessageID(const std::string &value)
Definition ActiveMQMessageTemplate.h:390
void failIfWriteOnlyBody() const
Definition ActiveMQMessageTemplate.h:453
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
Definition ActiveMQMessageTemplate.h:69
virtual bool getCMSRedelivered() const
Definition ActiveMQMessageTemplate.h:411
virtual void setCMSDestination(const cms::Destination *destination)
Definition ActiveMQMessageTemplate.h:362
virtual void setCMSCorrelationID(const std::string &correlationId)
Definition ActiveMQMessageTemplate.h:346
virtual short getShortProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:218
virtual void setFloatProperty(const std::string &name, float value)
Definition ActiveMQMessageTemplate.h:277
virtual float getFloatProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:188
virtual void setCMSDeliveryMode(int mode)
Definition ActiveMQMessageTemplate.h:354
virtual void setIntProperty(const std::string &name, int value)
Definition ActiveMQMessageTemplate.h:290
virtual cms::Message::ValueType getPropertyValueType(const std::string &name) const
Definition ActiveMQMessageTemplate.h:121
void failIfReadOnlyBody() const
Definition ActiveMQMessageTemplate.h:459
virtual bool propertyExists(const std::string &name) const
Definition ActiveMQMessageTemplate.h:114
virtual void setBooleanProperty(const std::string &name, bool value)
Definition ActiveMQMessageTemplate.h:238
virtual double getDoubleProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:178
virtual bool getBooleanProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:160
virtual std::string getCMSMessageID() const
Definition ActiveMQMessageTemplate.h:383
virtual const cms::Destination * getCMSReplyTo() const
Definition ActiveMQMessageTemplate.h:418
virtual std::string getStringProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:228
virtual void setStringProperty(const std::string &name, const std::string &value)
Definition ActiveMQMessageTemplate.h:329
virtual void clearProperties()
Definition ActiveMQMessageTemplate.h:99
virtual int getCMSPriority() const
Definition ActiveMQMessageTemplate.h:403
virtual int getIntProperty(const std::string &name) const
Definition ActiveMQMessageTemplate.h:198
virtual void clearBody()
Definition ActiveMQMessageTemplate.h:91
virtual void acknowledge() const
Definition ActiveMQMessageTemplate.h:57
virtual const cms::Destination * getCMSDestination() const
Definition ActiveMQMessageTemplate.h:358
virtual void setCMSReplyTo(const cms::Destination *destination)
Definition ActiveMQMessageTemplate.h:422
virtual std::string getCMSCorrelationID() const
Definition ActiveMQMessageTemplate.h:342
virtual void onSend()
Allows derived Message classes to perform tasks before a message is sent.
Definition ActiveMQMessageTemplate.h:64
virtual std::string getCMSType() const
Definition ActiveMQMessageTemplate.h:443
virtual ~ActiveMQMessageTemplate()
Definition ActiveMQMessageTemplate.h:52
virtual void setDoubleProperty(const std::string &name, double value)
Definition ActiveMQMessageTemplate.h:264
virtual void setCMSType(const std::string &type)
Definition ActiveMQMessageTemplate.h:447
void failIfReadOnlyProperties() const
Definition ActiveMQMessageTemplate.h:465
virtual void setByteProperty(const std::string &name, unsigned char value)
Definition ActiveMQMessageTemplate.h:251
ActiveMQMessageTemplate()
Definition ActiveMQMessageTemplate.h:48
virtual void setCMSPriority(int priority)
Definition ActiveMQMessageTemplate.h:407
virtual void setShortProperty(const std::string &name, short value)
Definition ActiveMQMessageTemplate.h:316
virtual std::vector< std::string > getPropertyNames() const
Definition ActiveMQMessageTemplate.h:107
virtual void setCMSExpiration(long long expireTime)
Definition ActiveMQMessageTemplate.h:379
Definition DataStructure.h:27
virtual const Pointer< ActiveMQDestination > & getReplyTo() const
virtual void setDestination(const Pointer< ActiveMQDestination > &destination)
virtual const std::string & getCorrelationId() const
unsigned char priority
Definition Message.h:73
virtual const std::string & getType() const
virtual long long getExpiration() const
virtual void setTimestamp(long long timestamp)
virtual int getRedeliveryCounter() const
virtual void setType(const std::string &type)
bool isReadOnlyBody() const
Returns if the Message Body is Read Only.
Definition Message.h:263
virtual Pointer< core::ActiveMQAckHandler > getAckHandler() const
Gets the Acknowledgment Handler that this Message will use when the Acknowledge method is called.
Definition Message.h:190
virtual const Pointer< MessageId > & getMessageId() const
void setReadOnlyBody(bool value)
Set the Read Only State of the Message Content.
Definition Message.h:271
virtual void setPriority(unsigned char priority)
virtual void setContent(const std::vector< unsigned char > &content)
virtual void setCorrelationId(const std::string &correlationId)
virtual long long getTimestamp() const
virtual void setExpiration(long long expiration)
Pointer< ActiveMQDestination > destination
Definition Message.h:63
virtual const Pointer< ActiveMQDestination > & getDestination() const
virtual void setReplyTo(const Pointer< ActiveMQDestination > &replyTo)
std::string type
Definition Message.h:76
Pointer< MessageId > messageId
Definition Message.h:66
virtual bool isPersistent() const
virtual unsigned char getPriority() const
virtual void setMessageId(const Pointer< MessageId > &messageId)
std::string correlationId
Definition Message.h:70
virtual void setPersistent(bool persistent)
util::PrimitiveMap & getMessageProperties()
Gets a reference to the Message's Properties object, allows the derived classes to get and set their ...
Definition Message.h:236
void setReadOnlyProperties(bool value)
Set the Read Only State of the Message Properties.
Definition Message.h:255
bool isReadOnlyProperties() const
Returns if the Message Properties Are Read Only.
Definition Message.h:247
Definition MessageId.h:49
static cms::MessageFormatException createMessageFormatException(const decaf::lang::Exception &cause)
PrimitiveType
Enumeration for the various primitive types.
Definition PrimitiveValueNode.h:44
@ BOOLEAN_TYPE
Definition PrimitiveValueNode.h:46
@ DOUBLE_TYPE
Definition PrimitiveValueNode.h:52
@ FLOAT_TYPE
Definition PrimitiveValueNode.h:53
@ BYTE_ARRAY_TYPE
Definition PrimitiveValueNode.h:55
@ CHAR_TYPE
Definition PrimitiveValueNode.h:48
@ INTEGER_TYPE
Definition PrimitiveValueNode.h:50
@ LONG_TYPE
Definition PrimitiveValueNode.h:51
@ NULL_TYPE
Definition PrimitiveValueNode.h:45
@ BYTE_TYPE
Definition PrimitiveValueNode.h:47
@ BIG_STRING_TYPE
Definition PrimitiveValueNode.h:58
@ SHORT_TYPE
Definition PrimitiveValueNode.h:49
@ STRING_TYPE
Definition PrimitiveValueNode.h:54
CMS API Exception that is the base for all exceptions thrown from CMS classes.
Definition CMSException.h:50
@ PERSISTENT
Definition DeliveryMode.h:55
A Destination object encapsulates a provider-specific address.
Definition Destination.h:39
ValueType
Defines the Type Identifiers used to identify the type contained within a specific Message property o...
Definition Message.h:112
@ LONG_TYPE
Definition Message.h:119
@ DOUBLE_TYPE
Definition Message.h:120
@ FLOAT_TYPE
Definition Message.h:121
@ BYTE_ARRAY_TYPE
Definition Message.h:123
@ BOOLEAN_TYPE
Definition Message.h:114
@ BYTE_TYPE
Definition Message.h:115
@ CHAR_TYPE
Definition Message.h:116
@ INTEGER_TYPE
Definition Message.h:118
@ UNKNOWN_TYPE
Definition Message.h:124
@ STRING_TYPE
Definition Message.h:122
@ SHORT_TYPE
Definition Message.h:117
@ NULL_TYPE
Definition Message.h:113
This exception must be thrown when a CMS client attempts to read a write-only message.
Definition MessageNotReadableException.h:31
This exception must be thrown when a CMS client attempts to write to a read-only message.
Definition MessageNotWriteableException.h:31
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition Pointer.h:53
PointerType get() const
Gets the real pointer that is contained within this Pointer.
Definition Pointer.h:188
Definition UnsupportedOperationException.h:32
#define NULL
Definition Config.h:33
Definition ActiveMQBlobMessage.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24