Files
mono/mcs/class/System.Web/System.Web.Configuration/HandlerFactoryConfiguration.cs
T
Patrik Torstensson 1c2178293d head -8 ChangeLog
svn path=/trunk/mcs/; revision=6420
2002-08-05 14:34:31 +00:00

36 lines
778 B
C#

//
// System.Web.Configuration.HandlerFactoryConfiguration
//
// Author:
// Patrik Torstensson ([email protected])
//
using System.Collections;
namespace System.Web.Configuration {
[MonoTODO]
public class HandlerFactoryConfiguration {
static private ArrayList _items = new ArrayList();
static public void Add(string rtype, string path, string type) {
HandlerItem item = new HandlerItem(rtype, path, type);
_items.Add(item);
}
static public HandlerItem FindHandler(string type, string path) {
int pos = 0;
int count = _items.Count;
for (pos = 0; pos != count; pos++) {
if (((HandlerItem) _items[pos]).IsMatch(type, path))
return (HandlerItem) _items[pos];
}
return null;
}
public HandlerFactoryConfiguration() {
}
}
}