mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -90,35 +90,40 @@ namespace OpenSim
|
||||
private string m_standaloneUserSource;
|
||||
|
||||
protected string m_assetStorage = "local";
|
||||
|
||||
|
||||
public ConsoleCommand CreateAccount = null;
|
||||
protected bool m_dumpAssetsToFile;
|
||||
|
||||
|
||||
protected List<IApplicationPlugin> m_plugins = new List<IApplicationPlugin>();
|
||||
|
||||
protected IniConfigSource m_config;
|
||||
|
||||
|
||||
public IniConfigSource ConfigSource
|
||||
{
|
||||
get { return m_config; }
|
||||
set { m_config = value; }
|
||||
}
|
||||
|
||||
public BaseHttpServer HttpServer
|
||||
{
|
||||
get { return m_httpServer; }
|
||||
}
|
||||
|
||||
|
||||
public List<IClientNetworkServer> ClientServers
|
||||
{
|
||||
get { return m_clientServers; }
|
||||
}
|
||||
|
||||
|
||||
public List<RegionInfo> RegionData
|
||||
{
|
||||
get { return m_regionData; }
|
||||
}
|
||||
|
||||
|
||||
public new BaseHttpServer HttpServer
|
||||
{
|
||||
get { return m_httpServer; }
|
||||
}
|
||||
|
||||
public new uint HttpServerPort
|
||||
{
|
||||
get { return m_httpServerPort; }
|
||||
}
|
||||
|
||||
protected ModuleLoader m_moduleLoader;
|
||||
|
||||
public ModuleLoader ModuleLoader
|
||||
|
||||
Reference in New Issue
Block a user