activemq-cpp-3.9.5
CompositeData.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_COMPOSITEDATA_H_
19#define _ACTIVEMQ_UTIL_COMPOSITEDATA_H_
20
24#include <decaf/net/URI.h>
26
27namespace activemq {
28namespace util {
29
30 using decaf::util::LinkedList;
31 using decaf::net::URI;
32 using decaf::util::Properties;
33
40 private:
41
42 std::string host;
43 std::string scheme;
44 std::string path;
45 LinkedList<URI> components;
46 Properties parameters;
47 std::string fragment;
48
49 public:
50
52 virtual ~CompositeData();
53
55 return components;
56 }
58 return components;
59 }
60
61 void setComponents(const LinkedList<URI>& components) {
62 this->components = components;
63 }
64
65 std::string getFragment() const {
66 return fragment;
67 }
68
69 void setFragment(const std::string& fragment) {
70 this->fragment = fragment;
71 }
72
73 const Properties& getParameters() const {
74 return parameters;
75 }
76
77 void setParameters(const Properties& parameters) {
78 this->parameters = parameters;
79 }
80
81 std::string getScheme() const {
82 return scheme;
83 }
84
85 void setScheme(const std::string& scheme) {
86 this->scheme = scheme;
87 }
88
89 std::string getPath() const {
90 return path;
91 }
92
93 void setPath(const std::string& path) {
94 this->path = path;
95 }
96
97 std::string getHost() const {
98 return host;
99 }
100
101 void setHost(const std::string& host) {
102 this->host = host;
103 }
104
108 URI toURI() const;
109
110 };
111
112}}
113
114#endif /* _ACTIVEMQ_UTIL_COMPOSITEDATA_H_ */
#define AMQCPP_API
Definition Config.h:30
void setHost(const std::string &host)
Definition CompositeData.h:101
std::string getHost() const
Definition CompositeData.h:97
void setScheme(const std::string &scheme)
Definition CompositeData.h:85
std::string getFragment() const
Definition CompositeData.h:65
void setPath(const std::string &path)
Definition CompositeData.h:93
LinkedList< URI > & getComponents()
Definition CompositeData.h:54
void setComponents(const LinkedList< URI > &components)
Definition CompositeData.h:61
void setParameters(const Properties &parameters)
Definition CompositeData.h:77
void setFragment(const std::string &fragment)
Definition CompositeData.h:69
std::string getPath() const
Definition CompositeData.h:89
const LinkedList< URI > & getComponents() const
Definition CompositeData.h:57
std::string getScheme() const
Definition CompositeData.h:81
const Properties & getParameters() const
Definition CompositeData.h:73
This class represents an instance of a URI as defined by RFC 2396.
Definition URI.h:37
A complete implementation of the List interface using a doubly linked list data structure.
Definition LinkedList.h:55
Java-like properties class for mapping string names to string values.
Definition Properties.h:53
Definition ActiveMQMessageTransformation.h:36
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24