Make it possible to override the URL module

melanie
Melanie Thielker 2017-01-26 18:35:53 +00:00
parent f0700f48d8
commit 32c1127809
1 changed files with 12 additions and 12 deletions

View File

@ -83,17 +83,17 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
LogManager.GetLogger( LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType); MethodBase.GetCurrentMethod().DeclaringType);
private Dictionary<UUID, UrlData> m_RequestMap = protected Dictionary<UUID, UrlData> m_RequestMap =
new Dictionary<UUID, UrlData>(); new Dictionary<UUID, UrlData>();
private Dictionary<string, UrlData> m_UrlMap = protected Dictionary<string, UrlData> m_UrlMap =
new Dictionary<string, UrlData>(); new Dictionary<string, UrlData>();
private uint m_HttpsPort = 0; protected uint m_HttpsPort = 0;
private IHttpServer m_HttpServer = null; protected IHttpServer m_HttpServer = null;
private IHttpServer m_HttpsServer = null; protected IHttpServer m_HttpsServer = null;
public string ExternalHostNameForLSL { get; private set; } public string ExternalHostNameForLSL { get; protected set; }
/// <summary> /// <summary>
/// The default maximum number of urls /// The default maximum number of urls
@ -107,7 +107,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
public Type ReplaceableInterface public Type ReplaceableInterface
{ {
get { return null; } get { return typeof(IUrlModule); }
} }
public string Name public string Name
@ -453,7 +453,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
} }
private void RemoveUrl(UrlData data) protected void RemoveUrl(UrlData data)
{ {
if (data.isSsl) if (data.isSsl)
m_HttpsServer.RemoveHTTPHandler("", "/lslhttps/"+data.urlcode.ToString()+"/"); m_HttpsServer.RemoveHTTPHandler("", "/lslhttps/"+data.urlcode.ToString()+"/");
@ -461,7 +461,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
m_HttpServer.RemoveHTTPHandler("", "/lslhttp/"+data.urlcode.ToString()+"/"); m_HttpServer.RemoveHTTPHandler("", "/lslhttp/"+data.urlcode.ToString()+"/");
} }
private Hashtable NoEvents(UUID requestID, UUID sessionID) protected Hashtable NoEvents(UUID requestID, UUID sessionID)
{ {
Hashtable response = new Hashtable(); Hashtable response = new Hashtable();
UrlData url; UrlData url;
@ -499,7 +499,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
return response; return response;
} }
private bool HasEvents(UUID requestID, UUID sessionID) protected bool HasEvents(UUID requestID, UUID sessionID)
{ {
UrlData url=null; UrlData url=null;
@ -530,7 +530,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
} }
} }
} }
private Hashtable GetEvents(UUID requestID, UUID sessionID) protected Hashtable GetEvents(UUID requestID, UUID sessionID)
{ {
UrlData url = null; UrlData url = null;
RequestData requestData = null; RequestData requestData = null;
@ -735,7 +735,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
} }
} }
private void OnScriptReset(uint localID, UUID itemID) protected void OnScriptReset(uint localID, UUID itemID)
{ {
ScriptRemoved(itemID); ScriptRemoved(itemID);
} }