activemq-cpp-3.9.5
URLType.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 _DECAF_INTERNAL_NET_URLTYPE_H_
19#define _DECAF_INTERNAL_NET_URLTYPE_H_
20
21#include <decaf/util/Config.h>
22#include <decaf/lang/String.h>
23
24namespace decaf {
25namespace internal {
26namespace net {
27
32 private:
33
35 decaf::lang::String protocol;
37 int port;
38 decaf::lang::String authority;
39 decaf::lang::String userInfo;
43 int hashCode;
44
45 public:
46
48
49 virtual ~URLType();
50
56 return file;
57 }
58
63 void setFile(const decaf::lang::String& file) {
64 this->file = file;
65 }
66
72 return protocol;
73 }
74
79 void setProtocol(const decaf::lang::String& protocol) {
80 this->protocol = protocol;
81 }
82
88 return authority;
89 }
90
95 void setAuthority(const decaf::lang::String& authority) {
96 this->authority = authority;
97 }
98
105 return userInfo;
106 }
107
114 void setUserInfo(const decaf::lang::String& userInfo) {
115 this->userInfo = userInfo;
116 }
117
123 return host;
124 }
125
130 void setHost(const decaf::lang::String& host) {
131 this->host = host;
132 }
133
138 int getPort() const {
139 return port;
140 }
141
146 void setPort(int port) {
147 this->port = port;
148 }
149
155 return path;
156 }
157
162 void setPath(const decaf::lang::String& path) {
163 this->path = path;
164 }
165
171 return query;
172 }
173
178 void setQuery(const decaf::lang::String& query) {
179 this->query = query;
180 }
181
187 return ref;
188 }
189
194 void setRef(const decaf::lang::String& ref) {
195 this->ref = ref;
196 }
197
203 int getHashCode() const {
204 return this->hashCode;
205 }
206
213 void setHashCode(int hashCode) {
214 this->hashCode = hashCode;
215 }
216 };
217
218}}}
219
220#endif /* _DECAF_INTERNAL_NET_URLTYPE_H_ */
void setHost(const decaf::lang::String &host)
Sets the Host name part of the URL.
Definition URLType.h:130
void setPath(const decaf::lang::String &path)
Sets the Path part of the URL.
Definition URLType.h:162
int getPort() const
Gets the port part of the URL.
Definition URLType.h:138
decaf::lang::String getAuthority() const
Gets the Authority of the URL.
Definition URLType.h:87
void setAuthority(const decaf::lang::String &authority)
Sets the Authority of the URL.
Definition URLType.h:95
decaf::lang::String getProtocol() const
Gets the protocol of the URL, e.g.
Definition URLType.h:71
void setQuery(const decaf::lang::String &query)
Sets the Query part of the URL.
Definition URLType.h:178
void setUserInfo(const decaf::lang::String &userInfo)
Sets the user info part of the URL, e.g.
Definition URLType.h:114
decaf::lang::String getFile() const
Gets the File of the URL.
Definition URLType.h:55
void setRef(const decaf::lang::String &ref)
Sets the Ref part of the URL.
Definition URLType.h:194
decaf::lang::String getRef() const
Gets the Ref part of the URL.
Definition URLType.h:186
void setPort(int port)
Sets the port part of the URL.
Definition URLType.h:146
decaf::lang::String getUserInfo() const
Gets the user info part of the URL, e.g.
Definition URLType.h:104
void setFile(const decaf::lang::String &file)
Sets the File of the URL.
Definition URLType.h:63
decaf::lang::String getHost() const
Gets the Host name part of the URL.
Definition URLType.h:122
void setHashCode(int hashCode)
Sets the hash code for this URLType instance.
Definition URLType.h:213
int getHashCode() const
Gets the computed hashCode for this URLType or return -1 if non is set.
Definition URLType.h:203
decaf::lang::String getQuery() const
Gets the Query part of the URL.
Definition URLType.h:170
decaf::lang::String getPath() const
Gets the Path part of the URL.
Definition URLType.h:154
void setProtocol(const decaf::lang::String &protocol)
Sets the protocol of the URL, e.g.
Definition URLType.h:79
An immutable sequence of characters.
Definition String.h:57
#define DECAF_API
Definition Config.h:29
Definition DefaultServerSocketFactory.h:27
Definition AprPool.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25