Example #1
0
        internal /*public*/ HandlerMapping FindMapping(String requestType, String path)
        {
            for (int phase = 0; phase < 2; phase++)
            {
                ArrayList list = _phase[phase];

                if (list != null)
                {
                    int n = list.Count;

                    for (int i = 0; i < n; i++)
                    {
                        HandlerMapping m = (HandlerMapping)list[i];

                        if (m.IsMatch(requestType, path))
                        {
                            return(m);
                        }
                    }
                }
            }

            return(null);
        }