activemq-cpp-3.6.0
StompCommandConstants.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef _ACTIVEMQ_WIREFORMAT_STOMP_STOMPCOMMANDCONSTANTS_H_
18 #define _ACTIVEMQ_WIREFORMAT_STOMP_STOMPCOMMANDCONSTANTS_H_
19 
20 #include <cms/Destination.h>
21 #include <activemq/util/Config.h>
23 
24 #include <string>
25 #include <map>
26 
27 namespace activemq{
28 namespace wireformat{
29 namespace stomp{
30 
32  public:
33 
34  // Stomp Command Ids
35  static const std::string CONNECT;
36  static const std::string CONNECTED;
37  static const std::string DISCONNECT;
38  static const std::string SUBSCRIBE;
39  static const std::string UNSUBSCRIBE;
40  static const std::string MESSAGE;
41  static const std::string SEND;
42  static const std::string BEGIN;
43  static const std::string COMMIT;
44  static const std::string ABORT;
45  static const std::string ACK;
46  static const std::string ERROR_CMD;
47  static const std::string RECEIPT;
48 
49  // Known Stomp Headers
50  static const std::string HEADER_DESTINATION;
51  static const std::string HEADER_TRANSACTIONID;
52  static const std::string HEADER_CONTENTLENGTH;
53  static const std::string HEADER_SESSIONID;
54  static const std::string HEADER_RECEIPT_REQUIRED;
55  static const std::string HEADER_RECEIPTID;
56  static const std::string HEADER_MESSAGEID;
57  static const std::string HEADER_ACK;
58  static const std::string HEADER_LOGIN;
59  static const std::string HEADER_PASSWORD;
60  static const std::string HEADER_CLIENT_ID;
61  static const std::string HEADER_MESSAGE;
62  static const std::string HEADER_CORRELATIONID;
63  static const std::string HEADER_REQUESTID;
64  static const std::string HEADER_RESPONSEID;
65  static const std::string HEADER_EXPIRES;
66  static const std::string HEADER_PERSISTENT;
67  static const std::string HEADER_REPLYTO;
68  static const std::string HEADER_TYPE;
69  static const std::string HEADER_DISPATCH_ASYNC;
70  static const std::string HEADER_EXCLUSIVE;
71  static const std::string HEADER_MAXPENDINGMSGLIMIT;
72  static const std::string HEADER_NOLOCAL;
73  static const std::string HEADER_PREFETCHSIZE;
74  static const std::string HEADER_JMSPRIORITY;
75  static const std::string HEADER_CONSUMERPRIORITY;
76  static const std::string HEADER_RETROACTIVE;
77  static const std::string HEADER_SUBSCRIPTIONNAME;
78  static const std::string HEADER_OLDSUBSCRIPTIONNAME;
79  static const std::string HEADER_TIMESTAMP;
80  static const std::string HEADER_REDELIVERED;
81  static const std::string HEADER_REDELIVERYCOUNT;
82  static const std::string HEADER_SELECTOR;
83  static const std::string HEADER_ID;
84  static const std::string HEADER_SUBSCRIPTION;
85  static const std::string HEADER_TRANSFORMATION;
86  static const std::string HEADER_TRANSFORMATION_ERROR;
87 
88  // Stomp Ack Modes
89  static const std::string ACK_CLIENT;
90  static const std::string ACK_AUTO;
91  static const std::string ACK_INDIVIDUAL;
92 
93  // Supported Stomp Message Types
94  static const std::string TEXT;
95  static const std::string BYTES;
96 
97  // Prefix Id's for Topics and Queues
98  static const std::string QUEUE_PREFIX;
99  static const std::string TOPIC_PREFIX;
100  static const std::string TEMPQUEUE_PREFIX;
101  static const std::string TEMPTOPIC_PREFIX;
102 
103  };
104 
105 }}}
106 
107 #endif /*_ACTIVEMQ_WIREFORMAT_STOMP_COMMANDS_COMMANDCONSTANTS_H_*/