// Determine if we have an application directory match.
	private static bool Match(UrlParser url, String dir)
			{
				if(dir.EndsWith("/"))
				{
					dir = dir + "*";
				}
				else
				{
					dir = dir + "/*";
				}
				UrlParser parser = new UrlParser(dir);
				return parser.Matches(url);
			}
        // Determine if we have an application directory match.
        private static bool Match(UrlParser url, String dir)
        {
            if (dir.EndsWith("/"))
            {
                dir = dir + "*";
            }
            else
            {
                dir = dir + "/*";
            }
            UrlParser parser = new UrlParser(dir);

            return(parser.Matches(url));
        }
        // Implement the IMembership interface.
        public bool Check(Evidence evidence)
        {
            if (evidence == null)
            {
                return(false);
            }
            IEnumerator e = evidence.GetHostEnumerator();

            while (e.MoveNext())
            {
                Url url = (e.Current as Url);
                if (url != null)
                {
                    if (parser.Matches(url.parser))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }