diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llcommon/lluri.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/lluri.cpp | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/linden/indra/llcommon/lluri.cpp b/linden/indra/llcommon/lluri.cpp index bc3540e..f85f294 100644 --- a/linden/indra/llcommon/lluri.cpp +++ b/linden/indra/llcommon/lluri.cpp | |||
@@ -6,6 +6,7 @@ | |||
6 | * | 6 | * |
7 | * Copyright (c) 2006-2007, Linden Research, Inc. | 7 | * Copyright (c) 2006-2007, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | ||
9 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
10 | * to you under the terms of the GNU General Public License, version 2.0 | 11 | * to you under the terms of the GNU General Public License, version 2.0 |
11 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -214,6 +215,19 @@ LLURI LLURI::buildHTTP(const std::string& prefix, | |||
214 | result.mEscapedPath += "/" + escapePathComponent(it->asString()); | 215 | result.mEscapedPath += "/" + escapePathComponent(it->asString()); |
215 | } | 216 | } |
216 | } | 217 | } |
218 | else if(path.isString()) | ||
219 | { | ||
220 | result.mEscapedPath += "/" + escapePathComponent(path.asString()); | ||
221 | } | ||
222 | else if(path.isUndefined()) | ||
223 | { | ||
224 | // do nothing | ||
225 | } | ||
226 | else | ||
227 | { | ||
228 | llwarns << "Valid path arguments to buildHTTP are array, string, or undef, you passed type" | ||
229 | << path.type() << llendl; | ||
230 | } | ||
217 | result.mEscapedOpaque = "//" + result.mEscapedAuthority + | 231 | result.mEscapedOpaque = "//" + result.mEscapedAuthority + |
218 | result.mEscapedPath; | 232 | result.mEscapedPath; |
219 | return result; | 233 | return result; |
@@ -284,19 +298,7 @@ namespace { | |||
284 | } | 298 | } |
285 | } | 299 | } |
286 | 300 | ||
287 | 301 | #if LL_ENABLE_JANKY_DEPRECATED_WEB_SERVICE_CALLS | |
288 | // static | ||
289 | LLURI LLURI::buildAgentPresenceURI(const LLUUID& agent_id, LLApp* app) | ||
290 | { | ||
291 | return buildBackboneURL(app, "agent", agent_id.asString(), "presence"); | ||
292 | } | ||
293 | |||
294 | // static | ||
295 | LLURI LLURI::buildBulkAgentPresenceURI(LLApp* app) | ||
296 | { | ||
297 | return buildBackboneURL(app, "agent", "presence"); | ||
298 | } | ||
299 | |||
300 | // static | 302 | // static |
301 | LLURI LLURI::buildBulkAgentNamesURI(LLApp* app) | 303 | LLURI LLURI::buildBulkAgentNamesURI(LLApp* app) |
302 | { | 304 | { |
@@ -321,25 +323,6 @@ LLURI LLURI::buildAgentSessionURI(const LLUUID& agent_id, LLApp* app) | |||
321 | } | 323 | } |
322 | 324 | ||
323 | // static | 325 | // static |
324 | LLURI LLURI::buildInventoryHostURI(const LLUUID& agent_id, LLApp* app) | ||
325 | { | ||
326 | std::string host = "localhost:12040"; | ||
327 | |||
328 | if (app) | ||
329 | { | ||
330 | host = app->getOption("backbone-host-port").asString(); | ||
331 | } | ||
332 | |||
333 | LLSD path = LLSD::emptyArray(); | ||
334 | path.append("agent"); | ||
335 | path.append(agent_id); | ||
336 | path.append("inventory"); | ||
337 | path.append("host"); | ||
338 | |||
339 | return buildHTTP(host, path); | ||
340 | } | ||
341 | |||
342 | // static | ||
343 | LLURI LLURI::buildAgentNameURI(const LLUUID& agent_id, LLApp* app) | 326 | LLURI LLURI::buildAgentNameURI(const LLUUID& agent_id, LLApp* app) |
344 | { | 327 | { |
345 | std::string host = "localhost:12040"; | 328 | std::string host = "localhost:12040"; |
@@ -367,6 +350,7 @@ LLURI LLURI::buildAgentLoginInfoURI(const LLUUID& agent_id, const std::string& d | |||
367 | 350 | ||
368 | return buildHTTP(dataserver, path); | 351 | return buildHTTP(dataserver, path); |
369 | } | 352 | } |
353 | #endif // LL_ENABLE_JANKY_DEPRECATED_WEB_SERVICE_CALLS | ||
370 | 354 | ||
371 | std::string LLURI::asString() const | 355 | std::string LLURI::asString() const |
372 | { | 356 | { |