HandlerFactoryConfiguration.cs 778 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // System.Web.Configuration.HandlerFactoryConfiguration
  3. //
  4. // Author:
  5. // Patrik Torstensson ([email protected])
  6. //
  7. using System.Collections;
  8. namespace System.Web.Configuration {
  9. [MonoTODO]
  10. public class HandlerFactoryConfiguration {
  11. static private ArrayList _items = new ArrayList();
  12. static public void Add(string rtype, string path, string type) {
  13. HandlerItem item = new HandlerItem(rtype, path, type);
  14. _items.Add(item);
  15. }
  16. static public HandlerItem FindHandler(string type, string path) {
  17. int pos = 0;
  18. int count = _items.Count;
  19. for (pos = 0; pos != count; pos++) {
  20. if (((HandlerItem) _items[pos]).IsMatch(type, path))
  21. return (HandlerItem) _items[pos];
  22. }
  23. return null;
  24. }
  25. public HandlerFactoryConfiguration() {
  26. }
  27. }
  28. }