diff options
author | lbsa71 | 2007-10-31 12:45:03 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-31 12:45:03 +0000 |
commit | 0d528e1d226283fa9acfafbd60b8a7461f509a85 (patch) | |
tree | 961a56c1e0f4857787a38ba5167dfc48404a9a90 /OpenSim/Framework/Servers/IStreamHandler.cs | |
parent | fixed bug with user not getting land properties on login (diff) | |
download | opensim-SC-0d528e1d226283fa9acfafbd60b8a7461f509a85.zip opensim-SC-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.gz opensim-SC-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.bz2 opensim-SC-0d528e1d226283fa9acfafbd60b8a7461f509a85.tar.xz |
* Added a streamhandler that does streams both in and out
* The RestDeserialisehandler now does streams and returns an object instead of string
Diffstat (limited to 'OpenSim/Framework/Servers/IStreamHandler.cs')
-rw-r--r-- | OpenSim/Framework/Servers/IStreamHandler.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/IStreamHandler.cs b/OpenSim/Framework/Servers/IStreamHandler.cs index d674172..6dc7189 100644 --- a/OpenSim/Framework/Servers/IStreamHandler.cs +++ b/OpenSim/Framework/Servers/IStreamHandler.cs | |||
@@ -30,11 +30,8 @@ using System.IO; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
32 | { | 32 | { |
33 | public interface IStreamHandler | 33 | public interface IRequestHandler |
34 | { | 34 | { |
35 | // Handle request stream, return byte array | ||
36 | byte[] Handle(string path, Stream request); | ||
37 | |||
38 | // Return response content type | 35 | // Return response content type |
39 | string ContentType { get; } | 36 | string ContentType { get; } |
40 | 37 | ||
@@ -44,4 +41,17 @@ namespace OpenSim.Framework.Servers | |||
44 | // Return path | 41 | // Return path |
45 | string Path { get; } | 42 | string Path { get; } |
46 | } | 43 | } |
44 | |||
45 | public interface IStreamedRequestHandler : IRequestHandler | ||
46 | { | ||
47 | // Handle request stream, return byte array | ||
48 | byte[] Handle(string path, Stream request); | ||
49 | } | ||
50 | |||
51 | public interface IStreamHandler : IRequestHandler | ||
52 | { | ||
53 | // Handle request stream, return byte array | ||
54 | void Handle(string path, Stream request, Stream response); | ||
55 | } | ||
56 | |||
47 | } \ No newline at end of file | 57 | } \ No newline at end of file |