hide handler types not in use from show http-handlers
parent
6c349e6534
commit
693adf9ecf
|
@ -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();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* XMLRPC methods ({0}):\n",lst.Count);
|
handlers.AppendFormat("* XMLRPC methods ({0}):\n",lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
handlers.AppendFormat("\t{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
lst = httpServer.GetJsonRpcHandlerKeys();
|
lst = httpServer.GetJsonRpcHandlerKeys();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* JSONRPC methods ({0}):\n", lst.Count);
|
handlers.AppendFormat("* JSONRPC methods ({0}):\n", lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
handlers.AppendFormat("\t{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
lst = httpServer.GetIndexPHPHandlerKeys();
|
lst = httpServer.GetIndexPHPHandlerKeys();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* index.php methods ({0}):\n", lst.Count);
|
handlers.AppendFormat("* index.php methods ({0}):\n", lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
handlers.AppendFormat("\t{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
lst = httpServer.GetHTTPHandlerKeys();
|
lst = httpServer.GetHTTPHandlerKeys();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* HTTP ({0}):\n", lst.Count);
|
handlers.AppendFormat("* HTTP ({0}):\n", lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
handlers.AppendFormat("\t{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
lst = httpServer.GetPollServiceHandlerKeys();
|
lst = httpServer.GetPollServiceHandlerKeys();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* HTTP poll ({0}):\n", lst.Count);
|
handlers.AppendFormat("* HTTP poll ({0}):\n", lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
handlers.AppendFormat("\t{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
lst = httpServer.GetLLSDHandlerKeys();
|
lst = httpServer.GetLLSDHandlerKeys();
|
||||||
|
if (lst.Count > 0)
|
||||||
|
{
|
||||||
handlers.AppendFormat("* LLSD ({0}):\n", lst.Count);
|
handlers.AppendFormat("* LLSD ({0}):\n", lst.Count);
|
||||||
foreach (String s in lst)
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
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("* StreamHandlers ({0}):\n", lst.Count);
|
||||||
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t{0}\n", s);
|
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("* SimpleStreamHandlers ({0}):\n", lst.Count);
|
||||||
|
foreach (String s in lst)
|
||||||
handlers.AppendFormat("\t***:{0}\n", s);
|
handlers.AppendFormat("\t***:{0}\n", s);
|
||||||
|
}
|
||||||
|
|
||||||
handlers.Append("\n");
|
handlers.Append("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue