diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Capabilities/CapsUtil.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 39 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 4 |
3 files changed, 38 insertions, 7 deletions
diff --git a/OpenSim/Framework/Capabilities/CapsUtil.cs b/OpenSim/Framework/Capabilities/CapsUtil.cs index 0334e4b..faf2708 100644 --- a/OpenSim/Framework/Capabilities/CapsUtil.cs +++ b/OpenSim/Framework/Capabilities/CapsUtil.cs | |||
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Capabilities | |||
41 | /// <returns></returns> | 41 | /// <returns></returns> |
42 | public static string GetCapsSeedPath(string capsObjectPath) | 42 | public static string GetCapsSeedPath(string capsObjectPath) |
43 | { | 43 | { |
44 | return "/CAPS/" + capsObjectPath + "0000/"; | 44 | return "CAPS/" + capsObjectPath + "0000/"; |
45 | } | 45 | } |
46 | 46 | ||
47 | /// <summary> | 47 | /// <summary> |
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index 176a523..680e702 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -116,8 +116,20 @@ namespace OpenSim.Framework | |||
116 | /// </summary> | 116 | /// </summary> |
117 | public string ServerURI | 117 | public string ServerURI |
118 | { | 118 | { |
119 | get { return m_serverURI; } | 119 | get { |
120 | set { m_serverURI = value; } | 120 | if ( m_serverURI != string.Empty ) { |
121 | return m_serverURI; | ||
122 | } else { | ||
123 | return "http://" + m_externalHostName + ":" + m_httpPort + "/"; | ||
124 | } | ||
125 | } | ||
126 | set { | ||
127 | if ( value.EndsWith("/") ) { | ||
128 | m_serverURI = value; | ||
129 | } else { | ||
130 | m_serverURI = value + '/'; | ||
131 | } | ||
132 | } | ||
121 | } | 133 | } |
122 | protected string m_serverURI; | 134 | protected string m_serverURI; |
123 | 135 | ||
@@ -142,6 +154,7 @@ namespace OpenSim.Framework | |||
142 | 154 | ||
143 | public SimpleRegionInfo() | 155 | public SimpleRegionInfo() |
144 | { | 156 | { |
157 | m_serverURI = string.Empty; | ||
145 | } | 158 | } |
146 | 159 | ||
147 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) | 160 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) |
@@ -151,6 +164,7 @@ namespace OpenSim.Framework | |||
151 | 164 | ||
152 | m_internalEndPoint = internalEndPoint; | 165 | m_internalEndPoint = internalEndPoint; |
153 | m_externalHostName = externalUri; | 166 | m_externalHostName = externalUri; |
167 | m_serverURI = string.Empty; | ||
154 | } | 168 | } |
155 | 169 | ||
156 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, uint port) | 170 | public SimpleRegionInfo(uint regionLocX, uint regionLocY, string externalUri, uint port) |
@@ -161,6 +175,7 @@ namespace OpenSim.Framework | |||
161 | m_externalHostName = externalUri; | 175 | m_externalHostName = externalUri; |
162 | 176 | ||
163 | m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); | 177 | m_internalEndPoint = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) port); |
178 | m_serverURI = string.Empty; | ||
164 | } | 179 | } |
165 | 180 | ||
166 | public SimpleRegionInfo(RegionInfo ConvertFrom) | 181 | public SimpleRegionInfo(RegionInfo ConvertFrom) |
@@ -450,6 +465,7 @@ namespace OpenSim.Framework | |||
450 | configMember = | 465 | configMember = |
451 | new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig); | 466 | new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig); |
452 | configMember.performConfigurationRetrieve(); | 467 | configMember.performConfigurationRetrieve(); |
468 | m_serverURI = string.Empty; | ||
453 | } | 469 | } |
454 | 470 | ||
455 | public RegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) | 471 | public RegionInfo(uint regionLocX, uint regionLocY, IPEndPoint internalEndPoint, string externalUri) |
@@ -459,10 +475,12 @@ namespace OpenSim.Framework | |||
459 | 475 | ||
460 | m_internalEndPoint = internalEndPoint; | 476 | m_internalEndPoint = internalEndPoint; |
461 | m_externalHostName = externalUri; | 477 | m_externalHostName = externalUri; |
478 | m_serverURI = string.Empty; | ||
462 | } | 479 | } |
463 | 480 | ||
464 | public RegionInfo() | 481 | public RegionInfo() |
465 | { | 482 | { |
483 | m_serverURI = string.Empty; | ||
466 | } | 484 | } |
467 | 485 | ||
468 | public EstateSettings EstateSettings | 486 | public EstateSettings EstateSettings |
@@ -552,10 +570,23 @@ namespace OpenSim.Framework | |||
552 | /// <summary> | 570 | /// <summary> |
553 | /// A well-formed URI for the host region server (namely "http://" + ExternalHostName) | 571 | /// A well-formed URI for the host region server (namely "http://" + ExternalHostName) |
554 | /// </summary> | 572 | /// </summary> |
573 | |||
555 | public string ServerURI | 574 | public string ServerURI |
556 | { | 575 | { |
557 | get { return m_serverURI; } | 576 | get { |
558 | set { m_serverURI = value; } | 577 | if ( m_serverURI != string.Empty ) { |
578 | return m_serverURI; | ||
579 | } else { | ||
580 | return "http://" + m_externalHostName + ":" + m_httpPort + "/"; | ||
581 | } | ||
582 | } | ||
583 | set { | ||
584 | if ( value.EndsWith("/") ) { | ||
585 | m_serverURI = value; | ||
586 | } else { | ||
587 | m_serverURI = value + '/'; | ||
588 | } | ||
589 | } | ||
559 | } | 590 | } |
560 | 591 | ||
561 | public string RegionName | 592 | public string RegionName |
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 30505f6..3c58a7d 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -348,7 +348,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
348 | { | 348 | { |
349 | try | 349 | try |
350 | { | 350 | { |
351 | // m_log.Debug("[BASE HTTP SERVER]: Handling request to " + request.RawUrl); | 351 | //m_log.Debug("[BASE HTTP SERVER]: Handling request to " + request.RawUrl); |
352 | 352 | ||
353 | Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", true); | 353 | Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", true); |
354 | 354 | ||
@@ -376,7 +376,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
376 | string path = request.RawUrl; | 376 | string path = request.RawUrl; |
377 | string handlerKey = GetHandlerKey(request.HttpMethod, path); | 377 | string handlerKey = GetHandlerKey(request.HttpMethod, path); |
378 | 378 | ||
379 | // m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); | 379 | //m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); |
380 | 380 | ||
381 | if (TryGetStreamHandler(handlerKey, out requestHandler)) | 381 | if (TryGetStreamHandler(handlerKey, out requestHandler)) |
382 | { | 382 | { |