From 0ea73384d4506c83bcd9f721a13fd5be11d1cc33 Mon Sep 17 00:00:00 2001
From: Dr Scofield
Date: Fri, 18 Jul 2008 15:31:28 +0000
Subject: simplifying OSHTtpHandler (a bit), adding query string matching,
adapting OSHttpXmlRpcHandler accordingly.
NOTE: this code is not live.
---
OpenSim/Framework/Servers/OSHttpHandler.cs | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Framework/Servers/OSHttpHandler.cs')
diff --git a/OpenSim/Framework/Servers/OSHttpHandler.cs b/OpenSim/Framework/Servers/OSHttpHandler.cs
index 8b65438..6e8f6fb 100644
--- a/OpenSim/Framework/Servers/OSHttpHandler.cs
+++ b/OpenSim/Framework/Servers/OSHttpHandler.cs
@@ -93,6 +93,16 @@ namespace OpenSim.Framework.Servers
protected Regex _path;
///
+ /// Dictionary of (query name, regular expression) tuples,
+ /// allowing us to match on URI query fields.
+ ///
+ public virtual Dictionary Query
+ {
+ get { return _query; }
+ }
+ protected Dictionary _query;
+
+ ///
/// Dictionary of (header name, regular expression) tuples,
/// allowing us to match on HTTP header fields.
///
@@ -119,18 +129,6 @@ namespace OpenSim.Framework.Servers
///
- /// An OSHttpHandler that matches on the "content-type" header can
- /// supply an OSHttpContentTypeChecker delegate which will be
- /// invoked by the request matcher in OSHttpRequestPump.
- ///
- /// true if the handler is interested in the content;
- /// false otherwise
- internal virtual OSHttpContentTypeChecker ContentTypeChecker
- {
- get { return null; }
- }
-
- ///
/// Base class constructor.
///
/// null or path regex
--
cgit v1.1