diff options
author | Sean Dague | 2008-05-14 19:13:54 +0000 |
---|---|---|
committer | Sean Dague | 2008-05-14 19:13:54 +0000 |
commit | 4a07038bbe616d05fbb3dfad79ec72a3169de589 (patch) | |
tree | 2ce85f8ef8818acf92c7f7ce1adbb9b772feb45d /OpenSim/Framework | |
parent | From: Dr Schofield <hud@zurich.ibm.com> (diff) | |
download | opensim-SC_OLD-4a07038bbe616d05fbb3dfad79ec72a3169de589.zip opensim-SC_OLD-4a07038bbe616d05fbb3dfad79ec72a3169de589.tar.gz opensim-SC_OLD-4a07038bbe616d05fbb3dfad79ec72a3169de589.tar.bz2 opensim-SC_OLD-4a07038bbe616d05fbb3dfad79ec72a3169de589.tar.xz |
From: Dr Scofield <DrScofield@xyzzyxyzzy.net>
the attached patch set adds the (still work-in-progress but already
working) RestPlugin base class and the RestRegionPlugin code. we are using
XML serialization.
currently working:
GET /admin/regions/ -> returns UUID list of known regions
GET /admin/regions/<UUID> -> returns detailed region information
we'll be adding support for POST/DELETE/PUT and also for
/admin/regions/<UUID>/name etc.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Servers/RestStreamHandler.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/RestStreamHandler.cs b/OpenSim/Framework/Servers/RestStreamHandler.cs index 64c7d40..cab5208 100644 --- a/OpenSim/Framework/Servers/RestStreamHandler.cs +++ b/OpenSim/Framework/Servers/RestStreamHandler.cs | |||
@@ -34,6 +34,11 @@ namespace OpenSim.Framework.Servers | |||
34 | { | 34 | { |
35 | private RestMethod m_restMethod; | 35 | private RestMethod m_restMethod; |
36 | 36 | ||
37 | public RestMethod Method | ||
38 | { | ||
39 | get { return m_restMethod; } | ||
40 | } | ||
41 | |||
37 | public override byte[] Handle(string path, Stream request) | 42 | public override byte[] Handle(string path, Stream request) |
38 | { | 43 | { |
39 | Encoding encoding = Encoding.UTF8; | 44 | Encoding encoding = Encoding.UTF8; |