diff options
author | Dr Scofield | 2008-05-19 11:38:35 +0000 |
---|---|---|
committer | Dr Scofield | 2008-05-19 11:38:35 +0000 |
commit | d725d1208bfbeae02f181cc6731f5a98dc7fce6d (patch) | |
tree | fd27fe08b43c7ef5d15ee0e829947f06d97e8375 /OpenSim/Grid | |
parent | Rework some of the animation logic in an attempt to resolve #1318 (diff) | |
download | opensim-SC-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.zip opensim-SC-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.gz opensim-SC-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.bz2 opensim-SC-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.xz |
adding OSHttpRequest and OSHttpResponse which wrap HttpListenerRequest and HttpListenerResponse respectively.
enhancing IStreamHandler and IStreamedHandler interfaces so that OSHttp{Request,Response} get passed in,
allowing RestHandlers to set response status code, redirections, etc.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetServer/RestService.cs | 7 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs index fcf99cd..c776c36 100644 --- a/OpenSim/Grid/AssetServer/RestService.cs +++ b/OpenSim/Grid/AssetServer/RestService.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | ||
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using System.Text; | 32 | using System.Text; |
32 | using System.Xml; | 33 | using System.Xml; |
@@ -59,7 +60,8 @@ namespace OpenSim.Grid.AssetServer | |||
59 | m_assetProvider = assetProvider; | 60 | m_assetProvider = assetProvider; |
60 | } | 61 | } |
61 | 62 | ||
62 | public override byte[] Handle(string path, Stream request) | 63 | public override byte[] Handle(string path, Stream request, |
64 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | ||
63 | { | 65 | { |
64 | string param = GetParam(path); | 66 | string param = GetParam(path); |
65 | byte[] result = new byte[] {}; | 67 | byte[] result = new byte[] {}; |
@@ -121,7 +123,8 @@ namespace OpenSim.Grid.AssetServer | |||
121 | private OpenAsset_Main m_assetManager; | 123 | private OpenAsset_Main m_assetManager; |
122 | private IAssetProvider m_assetProvider; | 124 | private IAssetProvider m_assetProvider; |
123 | 125 | ||
124 | public override byte[] Handle(string path, Stream request) | 126 | public override byte[] Handle(string path, Stream request, |
127 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | ||
125 | { | 128 | { |
126 | string param = GetParam(path); | 129 | string param = GetParam(path); |
127 | 130 | ||
diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs index a0aeacc..a5b256d 100644 --- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs +++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | ||
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using libsecondlife; | 32 | using libsecondlife; |
32 | using log4net; | 33 | using log4net; |
@@ -51,7 +52,8 @@ namespace OpenSim.Grid.MessagingServer | |||
51 | 52 | ||
52 | } | 53 | } |
53 | 54 | ||
54 | public override byte[] Handle(string path, Stream request) | 55 | public override byte[] Handle(string path, Stream request, |
56 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | ||
55 | { | 57 | { |
56 | string param = GetParam(path); | 58 | string param = GetParam(path); |
57 | byte[] result = new byte[] {}; | 59 | byte[] result = new byte[] {}; |
@@ -84,7 +86,8 @@ namespace OpenSim.Grid.MessagingServer | |||
84 | { | 86 | { |
85 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 87 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
86 | 88 | ||
87 | public override byte[] Handle(string path, Stream request) | 89 | public override byte[] Handle(string path, Stream request, |
90 | OSHttpRequest httpRequest, OSHttpResponse httpResponse) | ||
88 | { | 91 | { |
89 | string param = GetParam(path); | 92 | string param = GetParam(path); |
90 | 93 | ||