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