activemq-cpp-3.3.0

src/main/activemq/wireformat/stomp/StompCommandConstants.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef _ACTIVEMQ_WIREFORMAT_STOMP_STOMPCOMMANDCONSTANTS_H_
00018 #define _ACTIVEMQ_WIREFORMAT_STOMP_STOMPCOMMANDCONSTANTS_H_
00019 
00020 #include <cms/Destination.h>
00021 #include <activemq/util/Config.h>
00022 #include <decaf/lang/exceptions/IllegalArgumentException.h>
00023 
00024 #include <string>
00025 #include <map>
00026 
00027 namespace activemq{
00028 namespace wireformat{
00029 namespace stomp{
00030 
00031     class AMQCPP_API StompCommandConstants{
00032     public:
00033 
00034         // Stomp Command Ids
00035         static const std::string CONNECT;
00036         static const std::string CONNECTED;
00037         static const std::string DISCONNECT;
00038         static const std::string SUBSCRIBE;
00039         static const std::string UNSUBSCRIBE;
00040         static const std::string MESSAGE;
00041         static const std::string SEND;
00042         static const std::string BEGIN;
00043         static const std::string COMMIT;
00044         static const std::string ABORT;
00045         static const std::string ACK;
00046         static const std::string ERROR_CMD;
00047         static const std::string RECEIPT;
00048 
00049         // Known Stomp Headers
00050         static const std::string HEADER_DESTINATION;
00051         static const std::string HEADER_TRANSACTIONID;
00052         static const std::string HEADER_CONTENTLENGTH;
00053         static const std::string HEADER_SESSIONID;
00054         static const std::string HEADER_RECEIPT_REQUIRED;
00055         static const std::string HEADER_RECEIPTID;
00056         static const std::string HEADER_MESSAGEID;
00057         static const std::string HEADER_ACK;
00058         static const std::string HEADER_LOGIN;
00059         static const std::string HEADER_PASSWORD;
00060         static const std::string HEADER_CLIENT_ID;
00061         static const std::string HEADER_MESSAGE;
00062         static const std::string HEADER_CORRELATIONID;
00063         static const std::string HEADER_REQUESTID;
00064         static const std::string HEADER_RESPONSEID;
00065         static const std::string HEADER_EXPIRES;
00066         static const std::string HEADER_PERSISTENT;
00067         static const std::string HEADER_REPLYTO;
00068         static const std::string HEADER_TYPE;
00069         static const std::string HEADER_DISPATCH_ASYNC;
00070         static const std::string HEADER_EXCLUSIVE;
00071         static const std::string HEADER_MAXPENDINGMSGLIMIT;
00072         static const std::string HEADER_NOLOCAL;
00073         static const std::string HEADER_PREFETCHSIZE;
00074         static const std::string HEADER_JMSPRIORITY;
00075         static const std::string HEADER_CONSUMERPRIORITY;
00076         static const std::string HEADER_RETROACTIVE;
00077         static const std::string HEADER_SUBSCRIPTIONNAME;
00078         static const std::string HEADER_OLDSUBSCRIPTIONNAME;
00079         static const std::string HEADER_TIMESTAMP;
00080         static const std::string HEADER_REDELIVERED;
00081         static const std::string HEADER_REDELIVERYCOUNT;
00082         static const std::string HEADER_SELECTOR;
00083         static const std::string HEADER_ID;
00084         static const std::string HEADER_SUBSCRIPTION;
00085         static const std::string HEADER_TRANSFORMATION;
00086         static const std::string HEADER_TRANSFORMATION_ERROR;
00087 
00088         // Stomp Ack Modes
00089         static const std::string ACK_CLIENT;
00090         static const std::string ACK_AUTO;
00091         static const std::string ACK_INDIVIDUAL;
00092 
00093         // Supported Stomp Message Types
00094         static const std::string TEXT;
00095         static const std::string BYTES;
00096 
00097         // Prefix Id's for Topics and Queues
00098         static const std::string QUEUE_PREFIX;
00099         static const std::string TOPIC_PREFIX;
00100         static const std::string TEMPQUEUE_PREFIX;
00101         static const std::string TEMPTOPIC_PREFIX;
00102 
00103     };
00104 
00105 }}}
00106 
00107 #endif /*_ACTIVEMQ_WIREFORMAT_STOMP_COMMANDS_COMMANDCONSTANTS_H_*/