public string GetShortUrl(SimpleUri request)
 {
     if (this.HostEquals(request))
         return PathAndQuery;
     else
         return m_Str;
 }
 public ContentItem(PageRequest page, SimpleUri originalUrl)
 {
     PageRequest = page;
     OriginalUrl = originalUrl;
     MimeType = "";
     IsDojoJQuery = originalUrl != null &&
         (originalUrl.ToString().EndsWith("/jquery-1.3.2.js") ||
         originalUrl.ToString().EndsWith("/jquery-1.3.2.min.js") ||
         originalUrl.ToString().EndsWith("/jquery.js") ||
         originalUrl.ToString().Contains("/dojo/") && originalUrl.ToString().EndsWith(".js"));
 }
 public bool HostEquals(SimpleUri that)
 {
     return this.m_Host != "" && string.Compare(this.m_Host, that.m_Host, true) == 0;
 }