diff options
author | Kelly Washington <kelly@lindenlab.com> | 2007-03-16 17:29:45 +0000 |
---|---|---|
committer | Kelly Washington <kelly@lindenlab.com> | 2007-03-16 17:29:45 +0000 |
commit | 1ada34fc0c5dc20bffba231ef513b569dbec32ea (patch) | |
tree | 289bbf4de3978453f5214c97cf514785a90da015 /indra/llcommon | |
parent | 9d3309f6847a7406b2094201174cfa718cd60aa9 (diff) |
merge -r58842:59035 branches/loadstone-names to release
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/lluri.cpp | 35 | ||||
-rw-r--r-- | indra/llcommon/lluri.h | 3 |
2 files changed, 37 insertions, 1 deletions
diff --git a/indra/llcommon/lluri.cpp b/indra/llcommon/lluri.cpp index a2c651b444..bf0d2cb21e 100644 --- a/indra/llcommon/lluri.cpp +++ b/indra/llcommon/lluri.cpp @@ -279,6 +279,23 @@ LLURI LLURI::buildBulkAgentPresenceURI(LLApp* app) } // static +LLURI LLURI::buildBulkAgentNamesURI(LLApp* app) +{ + std::string host = "localhost:12040"; + + if (app) + { + host = app->getOption("backbone-host-port").asString(); + } + + LLSD path = LLSD::emptyArray(); + path.append("agent"); + path.append("names"); + + return buildHTTP(host, path); +} + +// static LLURI LLURI::buildAgentSessionURI(const LLUUID& agent_id, LLApp* app) { return buildBackboneURL(app, "agent", agent_id.asString(), "session"); @@ -304,6 +321,24 @@ LLURI LLURI::buildInventoryHostURI(const LLUUID& agent_id, LLApp* app) } // static +LLURI LLURI::buildAgentNameURI(const LLUUID& agent_id, LLApp* app) +{ + std::string host = "localhost:12040"; + + if (app) + { + host = app->getOption("backbone-host-port").asString(); + } + + LLSD path = LLSD::emptyArray(); + path.append("agent"); + path.append(agent_id); + path.append("name"); + + return buildHTTP(host, path); +} + +// static LLURI LLURI::buildAgentLoginInfoURI(const LLUUID& agent_id, const std::string& dataserver) { LLSD path = LLSD::emptyArray(); diff --git a/indra/llcommon/lluri.h b/indra/llcommon/lluri.h index b5c3a84173..865a3b21a0 100644 --- a/indra/llcommon/lluri.h +++ b/indra/llcommon/lluri.h @@ -79,10 +79,11 @@ public: // Functions for building specific URIs for web services static LLURI buildAgentPresenceURI(const LLUUID& agent_id, LLApp* app); static LLURI buildBulkAgentPresenceURI(LLApp* app); + static LLURI buildBulkAgentNamesURI(LLApp* app); static LLURI buildAgentSessionURI(const LLUUID& agent_id, LLApp* app); static LLURI buildAgentLoginInfoURI(const LLUUID& agent_id, const std::string& dataserver); static LLURI buildInventoryHostURI(const LLUUID& agent_id, LLApp* app); - + static LLURI buildAgentNameURI(const LLUUID& agent_id, LLApp* app); private: std::string mScheme; std::string mEscapedOpaque; |