activemq-cpp-3.8.2
URISupport.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 
18 #ifndef _ACTIVEMQ_UTIL_URISUPPORT_H_
19 #define _ACTIVEMQ_UTIL_URISUPPORT_H_
20 
21 #include <activemq/util/Config.h>
23 #include <decaf/util/Properties.h>
24 #include <decaf/util/LinkedList.h>
26 
27 namespace activemq {
28 namespace util {
29 
31  public:
32 
40  static void parseURL(const std::string& URI, decaf::util::Properties& properties);
41 
52  static CompositeData parseComposite(const URI& uri);
53 
66  static decaf::util::Properties parseQuery(std::string query);
67 
77  static void parseQuery(std::string query, decaf::util::Properties* properties);
78 
91  static std::string createQueryString(const Properties& options);
92 
93  private:
94 
105  static void parseComposite(const URI& uri, CompositeData& rc, const std::string& ssp);
106 
113  static decaf::util::LinkedList<std::string> splitComponents(const std::string& str);
114 
125  static std::string stripPrefix(const std::string& value, const std::string& prefix);
126 
134  static bool checkParenthesis(const std::string& str);
135 
145  static std::string replaceEnvValues(const std::string& value);
146 
147  };
148 
149 }}
150 
151 #endif /*_ACTIVEMQ_UTIL_URISUPPORT_H_*/
Definition: URISupport.h:30
#define AMQCPP_API
Definition: Config.h:30
Represents a Composite URI.
Definition: CompositeData.h:39
This class represents an instance of a URI as defined by RFC 2396.
Definition: URI.h:36
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
A complete implementation of the List interface using a doubly linked list data structure.
Definition: LinkedList.h:55