From 231a3bf147315a9284140476d2b09e13c3fee1c0 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 3 May 2012 01:45:49 +0100
Subject: Implement optional name and description on http stream handlers so
that we can relate a slow request to what the handler actually does and the
agent it serves, if applicable.
This is most useful for capabilities where the url is not self-describing.
---
.../Servers/HttpServer/Interfaces/IStreamHandler.cs | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Servers/HttpServer/Interfaces/IStreamHandler.cs')
diff --git a/OpenSim/Framework/Servers/HttpServer/Interfaces/IStreamHandler.cs b/OpenSim/Framework/Servers/HttpServer/Interfaces/IStreamHandler.cs
index a449c2d..cb5cce5 100644
--- a/OpenSim/Framework/Servers/HttpServer/Interfaces/IStreamHandler.cs
+++ b/OpenSim/Framework/Servers/HttpServer/Interfaces/IStreamHandler.cs
@@ -32,6 +32,25 @@ namespace OpenSim.Framework.Servers.HttpServer
{
public interface IRequestHandler
{
+
+ ///
+ /// Name for this handler.
+ ///
+ ///
+ /// Used for diagnostics. The path doesn't always describe what the handler does. Can be null if none
+ /// specified.
+ ///
+ string Name { get; }
+
+ ///
+ /// Description for this handler.
+ ///
+ ///
+ /// Used for diagnostics. The path doesn't always describe what the handler does. Can be null if none
+ /// specified.
+ ///
+ string Description { get; }
+
// Return response content type
string ContentType { get; }
@@ -58,4 +77,4 @@ namespace OpenSim.Framework.Servers.HttpServer
{
Hashtable Handle(string path, Hashtable request);
}
-}
+}
\ No newline at end of file
--
cgit v1.1