From 4a07038bbe616d05fbb3dfad79ec72a3169de589 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 14 May 2008 19:13:54 +0000 Subject: From: Dr Scofield 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/ -> returns detailed region information we'll be adding support for POST/DELETE/PUT and also for /admin/regions//name etc. --- OpenSim/Framework/Servers/RestStreamHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Framework/Servers') 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 { private RestMethod m_restMethod; + public RestMethod Method + { + get { return m_restMethod; } + } + public override byte[] Handle(string path, Stream request) { Encoding encoding = Encoding.UTF8; -- cgit v1.1