constants.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // Copyright (C) 2015, Alibaba Cloud Computing
  2. #ifndef MNS_CONSTANTS_H
  3. #define MNS_CONSTANTS_H
  4. namespace mns
  5. {
  6. namespace sdk
  7. {
  8. const char* const GET = "GET";
  9. const char* const PUT = "PUT";
  10. const char* const POST = "POST";
  11. const char* const DELETE_METHOD = "DELETE";
  12. const char* const HOST = "Host";
  13. const char* const CURRENT_VERSION = "2015-06-06";
  14. const char* const CONTENT_TYPE = "Content-Type";
  15. const char* const CONTENT_LENGTH = "Content-Length";
  16. const char* const SECURITY_TOKEN = "security-token";
  17. const char* const DATE = "Date";
  18. const char* const MNS_VERSION = "x-mns-version";
  19. const char* const MNS_PREFIX = "x-mns-prefix";
  20. const char* const MNS_MARKER = "x-mns-marker";
  21. const char* const MNS_RETNUM = "x-mns-ret-number";
  22. const char* const AUTHORIZATION = "Authorization";
  23. const char* const CONTENT_MD5 = "Content-MD5";
  24. const char* const LOCATION = "Location";
  25. const char* const CANONICALIZED_MNS_HEADER_PREFIX = "x-mns-";
  26. const char* const MNS_XML_NAMESPACE_V1 = "http://mns.aliyuncs.com/doc/v1";
  27. const char* const DEFAULT_CONTENT_TYPE = "text/xml;charset=UTF-8";
  28. //Error code
  29. const char* const MESSAGE_NOT_EXIST = "MessageNotExist";
  30. const char* const QUEUE_NOT_EXIST = "QueueNotExist";
  31. const char* const TOPIC_NOT_EXIST = "TopicNotExist";
  32. const char* const SUBSCRIPTION_NOT_EXIST = "SubscriptionNotExist";
  33. const char* const QUEUE_ALREADY_EXIST = "QueueAlreadyExist";
  34. const char* const TOPIC_ALREADY_EXIST = "TopicAlreadyExist";
  35. const char* const SUBSCRIPTION_ALREADY_EXIST = "SubscriptionAlreadyExist";
  36. const char* const STATE_CONFLICT = "StateConflict";
  37. const char* const REQUEST_TIMEOUT = "RequestTimeout";
  38. const char* const BEGIN_CURSOR = "begin";
  39. const char* const NEXT_CURSOR = "next";
  40. const char* const HTTP_PREFIX = "http://";
  41. const char* const HTTPS_PREFIX = "https://";
  42. const char* const NOTIFY_STRATEGY_BACKOFF_RETRY = "BACKOFF_RETRY";
  43. const char* const NOTIFY_STRATEGY_EXPONENTIAL_DECAY_RETRY = "EXPONENTIAL_DECAY_RETRY";
  44. const char* const SUBSCRIPTION_STATE_ACTIVE = "Active";
  45. const char* const SUBSCRIPTION_STATE_INACTIVE = "Inactive";
  46. const char* const ERROR_TAG = "Error";
  47. const char* const QUEUE = "Queue";
  48. const char* const QUEUES = "Queues";
  49. const char* const TOPIC = "Topic";
  50. const char* const TOPICS = "Topics";
  51. const char* const SUBSCRIPTION = "Subscription";
  52. const char* const SUBSCRIPTIONS = "Subscriptions";
  53. const char* const QUEUE_URL = "QueueURL";
  54. const char* const TOPIC_URL = "TopicURL";
  55. const char* const SUBSCRIPTION_URL = "SubscriptionURL";
  56. const char* const QUEUE_NAME = "QueueName";
  57. const char* const MESSAGE = "Message";
  58. const char* const REQUEST_ID = "RequestId";
  59. const char* const HOST_ID = "HostId";
  60. const char* const MESSAGE_ID = "MessageId";
  61. const char* const MESSAGE_BODY = "MessageBody";
  62. const char* const MESSAGE_BODY_MD5 = "MessageBodyMD5";
  63. const char* const RECEIPT_HANDLE = "ReceiptHandle";
  64. const char* const ENQUEUE_TIME = "EnqueueTime";
  65. const char* const FIRST_DEQUEUE_TIME = "FirstDequeueTime";
  66. const char* const NEXT_VISIBLE_TIME = "NextVisibleTime";
  67. const char* const DEQUEUE_COUNT = "DequeueCount";
  68. const char* const PRIORITY = "Priority";
  69. const char* const CODE = "Code";
  70. const char* const CREATE_TIME = "CreateTime";
  71. const char* const LAST_MODIFY_TIME = "LastModifyTime";
  72. const char* const VISIBILITY_TIMEOUT = "VisibilityTimeout";
  73. const char* const DELAY_SECONDS = "DelaySeconds";
  74. const char* const MAXIMUM_MESSAGE_SIZE = "MaximumMessageSize";
  75. const char* const MESSAGE_RETENTION_PERIOD= "MessageRetentionPeriod";
  76. const char* const ACTIVE_MESSAGES = "ActiveMessages";
  77. const char* const INACTIVE_MESSAGES = "InactiveMessages";
  78. const char* const DELAY_MESSAGES = "DelayMessages";
  79. const char* const POLLING_WAIT_SECONDS = "PollingWaitSeconds";
  80. const char* const ERROR_MESSAGE = "ErrorMessage";
  81. const char* const ERROR_CODE = "ErrorCode";
  82. const char* const NEXT_MARKER = "NextMarker";
  83. const char* const MESSAGE_COUNT = "MessageCount";
  84. const char* const LOGGING_BUCKET = "LoggingBucket";
  85. const char* const LOGGING_ENABLED = "LoggingEnabled";
  86. const char* const ENDPOINT = "Endpoint";
  87. const char* const BACKOFF_RETRY_STR = "BACKOFF_RETRY";
  88. const char* const EXPONENTIAL_DECAY_RETRY_STR = "EXPONENTIAL_DECAY_RETRY";
  89. const char* const XML_STR = "XML";
  90. const char* const SIMPLIFIED_STR = "SIMPLIFIED";
  91. const char* const JSON_STR = "JSON";
  92. const char* const NOTIFY_STRATEGY_STR = "NotifyStrategy";
  93. const char* const CONTENT_FORMAT_STR = "NotifyContentFormat";
  94. const char* const SUBSCRIPTION_NAME = "SubscriptionName";
  95. const char* const TOPIC_OWNER = "TopicOwner";
  96. const char* const TOPIC_NAME = "TopicName";
  97. const char* const FILTER_TAG = "FilterTag";
  98. }
  99. }
  100. #endif