in activemq-cpp/src/main/activemq/commands/Message.cpp [131:282]
std::string Message::toString() const {
ostringstream stream;
stream << "Message { "
<< "commandId = " << this->getCommandId() << ", "
<< "responseRequired = " << boolalpha << this->isResponseRequired();
stream << ", ";
stream << "ProducerId = ";
if (this->getProducerId() != NULL) {
stream << this->getProducerId()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "Destination = ";
if (this->getDestination() != NULL) {
stream << this->getDestination()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "TransactionId = ";
if (this->getTransactionId() != NULL) {
stream << this->getTransactionId()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "OriginalDestination = ";
if (this->getOriginalDestination() != NULL) {
stream << this->getOriginalDestination()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "MessageId = ";
if (this->getMessageId() != NULL) {
stream << this->getMessageId()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "OriginalTransactionId = ";
if (this->getOriginalTransactionId() != NULL) {
stream << this->getOriginalTransactionId()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "GroupID = " << this->getGroupID();
stream << ", ";
stream << "GroupSequence = " << this->getGroupSequence();
stream << ", ";
stream << "CorrelationId = " << this->getCorrelationId();
stream << ", ";
stream << "Persistent = " << this->isPersistent();
stream << ", ";
stream << "Expiration = " << this->getExpiration();
stream << ", ";
stream << "Priority = " << (int)this->getPriority();
stream << ", ";
stream << "ReplyTo = ";
if (this->getReplyTo() != NULL) {
stream << this->getReplyTo()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "Timestamp = " << this->getTimestamp();
stream << ", ";
stream << "Type = " << this->getType();
stream << ", ";
stream << "Content = ";
if (this->getContent().size() > 0) {
stream << "[size=" << this->getContent().size() << "]";
} else {
stream << "NULL";
}
stream << ", ";
stream << "MarshalledProperties = ";
if (this->getMarshalledProperties().size() > 0) {
stream << "[size=" << this->getMarshalledProperties().size() << "]";
} else {
stream << "NULL";
}
stream << ", ";
stream << "DataStructure = ";
if (this->getDataStructure() != NULL) {
stream << this->getDataStructure()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "TargetConsumerId = ";
if (this->getTargetConsumerId() != NULL) {
stream << this->getTargetConsumerId()->toString();
} else {
stream << "NULL";
}
stream << ", ";
stream << "Compressed = " << this->isCompressed();
stream << ", ";
stream << "RedeliveryCounter = " << this->getRedeliveryCounter();
stream << ", ";
stream << "BrokerPath = ";
if (this->getBrokerPath().size() > 0) {
stream << "[";
for (size_t ibrokerPath = 0; ibrokerPath < this->getBrokerPath().size(); ++ibrokerPath) {
if (this->getBrokerPath()[ibrokerPath] != NULL) {
stream << this->getBrokerPath()[ibrokerPath]->toString() << ", ";
} else {
stream << "NULL" << ", ";
}
}
stream << "]";
} else {
stream << "NULL";
}
stream << ", ";
stream << "Arrival = " << this->getArrival();
stream << ", ";
stream << "UserID = " << this->getUserID();
stream << ", ";
stream << "RecievedByDFBridge = " << this->isRecievedByDFBridge();
stream << ", ";
stream << "Droppable = " << this->isDroppable();
stream << ", ";
stream << "Cluster = ";
if (this->getCluster().size() > 0) {
stream << "[";
for (size_t icluster = 0; icluster < this->getCluster().size(); ++icluster) {
if (this->getCluster()[icluster] != NULL) {
stream << this->getCluster()[icluster]->toString() << ", ";
} else {
stream << "NULL" << ", ";
}
}
stream << "]";
} else {
stream << "NULL";
}
stream << ", ";
stream << "BrokerInTime = " << this->getBrokerInTime();
stream << ", ";
stream << "BrokerOutTime = " << this->getBrokerOutTime();
stream << ", ";
stream << "JMSXGroupFirstForConsumer = " << this->isJMSXGroupFirstForConsumer();
stream << " }";
return stream.str();
}