From edc572dacf3ff65c5584f8c02bb291abce0c7122 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 1 Aug 2007 16:50:20 +0000 Subject: Some more work on SceneObject/primitive rewrites (AllNewSceneObjectGroup2 /Part2). Updated the JavaVM to a later version I did (basically some clean up and a little bit more functional). Added SendLoadURL method to IClientAPI. --- OpenSim/Framework/Communications/Capabilities/Caps.cs | 13 +++++++------ .../Communications/Capabilities/LLSDCapsDetails.cs | 7 +++++-- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 05fa963..d133617 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -48,7 +48,7 @@ namespace OpenSim.Region.Capabilities private string m_requestPath = "0000/"; private string m_mapLayerPath = "0001/"; private string m_newInventory = "0002/"; - // private string m_requestTexture = "0003/"; + //private string m_requestTexture = "0003/"; private string m_notecardUpdatePath = "0004/"; //private string eventQueue = "0100/"; private BaseHttpServer httpListener; @@ -79,6 +79,7 @@ namespace OpenSim.Region.Capabilities httpListener.AddStreamHandler( new LLSDStreamhandler("POST", capsBase + m_newInventory, this.NewAgentInventoryRequest)); AddLegacyCapsHandler(httpListener, m_requestPath, CapsRequest); + //AddLegacyCapsHandler(httpListener, m_requestTexture , RequestTexture); AddLegacyCapsHandler(httpListener, m_notecardUpdatePath, NoteCardAgentInventory); } @@ -116,7 +117,6 @@ namespace OpenSim.Region.Capabilities string capsBaseUrl = "http://" + m_httpListenerHostName + ":" + m_httpListenPort.ToString() + "/CAPS/" + m_capsObjectPath; caps.MapLayer = capsBaseUrl + m_mapLayerPath; caps.NewFileAgentInventory = capsBaseUrl + m_newInventory; - //caps.RequestTextureDownload = capsBaseUrl + m_requestTexture; caps.UpdateNotecardAgentInventory = capsBaseUrl + m_notecardUpdatePath; return caps; } @@ -299,7 +299,7 @@ namespace OpenSim.Region.Capabilities private LLUUID newAssetID; private LLUUID inventoryItemID; private BaseHttpServer httpListener; - private bool SaveImages = false; + private bool SaveAssets = false; private string m_assetName = ""; /// @@ -338,8 +338,8 @@ namespace OpenSim.Region.Capabilities httpListener.RemoveStreamHandler("POST", uploaderPath); - if(this.SaveImages) - this.SaveImageToFile(m_assetName + ".jp2", data); + if(this.SaveAssets) + this.SaveAssetToFile(m_assetName + ".jp2", data); if (OnUpLoad != null) { @@ -349,7 +349,7 @@ namespace OpenSim.Region.Capabilities return res; } - private void SaveImageToFile(string filename, byte[] data) + private void SaveAssetToFile(string filename, byte[] data) { FileStream fs = File.Create(filename); BinaryWriter bw = new BinaryWriter(fs); @@ -360,3 +360,4 @@ namespace OpenSim.Region.Capabilities } } } + diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDCapsDetails.cs b/OpenSim/Framework/Communications/Capabilities/LLSDCapsDetails.cs index cae7e97..913d7ab 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDCapsDetails.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDCapsDetails.cs @@ -6,9 +6,10 @@ namespace OpenSim.Region.Capabilities public string MapLayer = ""; public string NewFileAgentInventory = ""; //public string EventQueueGet = ""; - //public string RequestTextureDownload = ""; - //public string ChatSessionRequest = ""; + // public string RequestTextureDownload = ""; + // public string ChatSessionRequest = ""; public string UpdateNotecardAgentInventory = ""; + // public string ParcelVoiceInfoRequest = ""; public LLSDCapsDetails() { @@ -16,3 +17,5 @@ namespace OpenSim.Region.Capabilities } } } + + -- cgit v1.1