hide handler types not in use from show http-handlers

master
UbitUmarov 2020-04-29 13:41:57 +01:00
parent 6c349e6534
commit 693adf9ecf
1 changed files with 50 additions and 26 deletions

View File

@ -242,44 +242,68 @@ namespace OpenSim.Framework.Servers
"Registered HTTP Handlers for server at {0}:{1}\n", httpServer.ListenIPAddress, httpServer.Port);
List<string> lst = httpServer.GetXmlRpcHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* XMLRPC methods ({0}):\n",lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
lst = httpServer.GetJsonRpcHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* JSONRPC methods ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
lst = httpServer.GetIndexPHPHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* index.php methods ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
lst = httpServer.GetHTTPHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* HTTP ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
lst = httpServer.GetPollServiceHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* HTTP poll ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
lst = httpServer.GetLLSDHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* LLSD ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
List<string> shdrs = httpServer.GetStreamHandlerKeys();
handlers.AppendFormat("* StreamHandlers ({0}):\n", shdrs.Count);
foreach (String s in shdrs)
lst = httpServer.GetStreamHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* StreamHandlers ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t{0}\n", s);
}
shdrs = httpServer.GetSimpleStreamHandlerKeys();
handlers.AppendFormat("* SimpleStreamHandlers ({0}):\n", shdrs.Count);
foreach (String s in shdrs)
lst = httpServer.GetSimpleStreamHandlerKeys();
if (lst.Count > 0)
{
handlers.AppendFormat("* SimpleStreamHandlers ({0}):\n", lst.Count);
foreach (String s in lst)
handlers.AppendFormat("\t***:{0}\n", s);
}
handlers.Append("\n");
}