aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/GridServer/GridRestModule.cs
diff options
context:
space:
mode:
authorMW2009-02-21 14:19:40 +0000
committerMW2009-02-21 14:19:40 +0000
commit65d413e5ee1a2e7e46806039d667fc31063e2a09 (patch)
tree66555194e50683beeb4f9d1c07c8d76dfcc182bf /OpenSim/Grid/GridServer/GridRestModule.cs
parent* Upping to interface version 3 - let's see how this goes. (diff)
downloadopensim-SC_OLD-65d413e5ee1a2e7e46806039d667fc31063e2a09.zip
opensim-SC_OLD-65d413e5ee1a2e7e46806039d667fc31063e2a09.tar.gz
opensim-SC_OLD-65d413e5ee1a2e7e46806039d667fc31063e2a09.tar.bz2
opensim-SC_OLD-65d413e5ee1a2e7e46806039d667fc31063e2a09.tar.xz
A bit more refactoring of the GridServer. To make the "modules" share a common Initialise method.
Diffstat (limited to 'OpenSim/Grid/GridServer/GridRestModule.cs')
-rw-r--r--OpenSim/Grid/GridServer/GridRestModule.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Grid/GridServer/GridRestModule.cs b/OpenSim/Grid/GridServer/GridRestModule.cs
index 1ed0ac1..d0bcbe8 100644
--- a/OpenSim/Grid/GridServer/GridRestModule.cs
+++ b/OpenSim/Grid/GridServer/GridRestModule.cs
@@ -62,17 +62,18 @@ namespace OpenSim.Grid.GridServer
62 /// <param name="opensimVersion"> 62 /// <param name="opensimVersion">
63 /// Used to notify old regions as to which OpenSim version to upgrade to 63 /// Used to notify old regions as to which OpenSim version to upgrade to
64 /// </param> 64 /// </param>
65 public GridRestModule(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config) 65 public GridRestModule()
66 { 66 {
67 m_opensimVersion = opensimVersion; 67 }
68
69 public void Initialise(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config)
70 {
71 m_opensimVersion = opensimVersion;
68 m_gridDBService = gridDBService; 72 m_gridDBService = gridDBService;
69 m_gridCore = gridCore; 73 m_gridCore = gridCore;
70 m_config = config; 74 m_config = config;
71 m_httpServer = m_gridCore.GetHttpServer(); 75 m_httpServer = m_gridCore.GetHttpServer();
72 }
73 76
74 public void Initialise()
75 {
76 m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", RestGetSimMethod)); 77 m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", RestGetSimMethod));
77 m_httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", RestSetSimMethod)); 78 m_httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", RestSetSimMethod));
78 79