aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
index 6d5b30e..8f601e8 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs
@@ -119,6 +119,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
119 119
120 public AssetBase Get(string id) 120 public AssetBase Get(string id)
121 { 121 {
122 if (String.IsNullOrEmpty(m_serverUrl))
123 {
124 m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
125 throw new InvalidOperationException();
126 }
127
122 // Cache fetch 128 // Cache fetch
123 if (m_cache != null) 129 if (m_cache != null)
124 { 130 {
@@ -145,6 +151,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
145 /// <returns></returns> 151 /// <returns></returns>
146 public AssetMetadata GetMetadata(string id) 152 public AssetMetadata GetMetadata(string id)
147 { 153 {
154 if (String.IsNullOrEmpty(m_serverUrl))
155 {
156 m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
157 throw new InvalidOperationException();
158 }
159
148 AssetMetadata metadata = null; 160 AssetMetadata metadata = null;
149 161
150 // Cache fetch 162 // Cache fetch
@@ -216,6 +228,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
216 /// <returns>True if the id was parseable, false otherwise</returns> 228 /// <returns>True if the id was parseable, false otherwise</returns>
217 public bool Get(string id, Object sender, AssetRetrieved handler) 229 public bool Get(string id, Object sender, AssetRetrieved handler)
218 { 230 {
231 if (String.IsNullOrEmpty(m_serverUrl))
232 {
233 m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
234 throw new InvalidOperationException();
235 }
236
219 // Cache fetch 237 // Cache fetch
220 if (m_cache != null) 238 if (m_cache != null)
221 { 239 {
@@ -246,6 +264,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
246 /// <returns></returns> 264 /// <returns></returns>
247 public string Store(AssetBase asset) 265 public string Store(AssetBase asset)
248 { 266 {
267 if (String.IsNullOrEmpty(m_serverUrl))
268 {
269 m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
270 throw new InvalidOperationException();
271 }
272
249 bool storedInCache = false; 273 bool storedInCache = false;
250 string errorMessage = null; 274 string errorMessage = null;
251 275
@@ -378,6 +402,12 @@ namespace OpenSim.Services.Connectors.SimianGrid
378 /// <returns></returns> 402 /// <returns></returns>
379 public bool Delete(string id) 403 public bool Delete(string id)
380 { 404 {
405 if (String.IsNullOrEmpty(m_serverUrl))
406 {
407 m_log.Error("[SIMIAN ASSET CONNECTOR]: No AssetServerURI configured");
408 throw new InvalidOperationException();
409 }
410
381 //string errorMessage = String.Empty; 411 //string errorMessage = String.Empty;
382 string url = m_serverUrl + id; 412 string url = m_serverUrl + id;
383 413