From 3e546ebbc5a6e9a5b1751a55298e3dbf53ba9ae0 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Sun, 22 Apr 2012 19:31:51 -0400 Subject: [PATCH] Adding framework to handle web requests for plugin management --- .../Integration/IntegrationServerHandler.cs | 15 +++++++++++++++ .../IntegrationService/IntegrationService.cs | 15 +++++++++++++++ .../Services/Interfaces/IIntegrationService.cs | 5 +++++ 3 files changed, 35 insertions(+) diff --git a/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs b/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs index 6e514928c3..39bcca2832 100644 --- a/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs +++ b/OpenSim/Server/Handlers/Integration/IntegrationServerHandler.cs @@ -108,6 +108,21 @@ namespace OpenSim.Server.Handlers.Integration { return m_IntegrationService.HandleWebPluginInfo(request); } + + public byte[] HandleWebListAvailablePlugins(OSDMap request) + { + return m_IntegrationService.HandleWebListAvailablePlugins(request); + } + + public byte[] HandleWebInstallPlugin(OSDMap request) + { + return m_IntegrationService.HandleWebInstallPlugin(request); + } + + public byte[] HnadleWebUnInstallPlugin(OSDMap request) + { + return m_IntegrationService.HandleWebUnInstallPlugin(request); + } #endregion web handlers #region utility diff --git a/OpenSim/Services/IntegrationService/IntegrationService.cs b/OpenSim/Services/IntegrationService/IntegrationService.cs index 4943b980b5..2a8f3e0d24 100644 --- a/OpenSim/Services/IntegrationService/IntegrationService.cs +++ b/OpenSim/Services/IntegrationService/IntegrationService.cs @@ -259,6 +259,21 @@ namespace OpenSim.Services.IntegrationService { return Ux.FailureResult("Not Implemented"); } + + public byte[] HandleWebListAvailablePlugins(OSDMap request) + { + return Ux.FailureResult("Not Implemented"); + } + + public byte[] HandleWebInstallPlugin(OSDMap request) + { + return Ux.FailureResult("Not Implemented"); + } + + public byte[] HandleWebUnInstallPlugin(OSDMap request) + { + return Ux.FailureResult("Not Implemented"); + } #endregion } } \ No newline at end of file diff --git a/OpenSim/Services/Interfaces/IIntegrationService.cs b/OpenSim/Services/Interfaces/IIntegrationService.cs index 6dbaf52eb0..8b5d35b81c 100644 --- a/OpenSim/Services/Interfaces/IIntegrationService.cs +++ b/OpenSim/Services/Interfaces/IIntegrationService.cs @@ -36,8 +36,13 @@ namespace OpenSim.Services.Interfaces { public interface IIntegrationService { + #region Web handlers byte[] HandleWebListPlugins(OSDMap request); byte[] HandleWebPluginInfo(OSDMap request); + byte[] HandleWebListAvailablePlugins(OSDMap request); + byte[] HandleWebInstallPlugin(OSDMap request); + byte[] HandleWebUnInstallPlugin(OSDMap request); + #endregion } }