Example #1
0
 public DefaultContentRewriter(IGadgetSpecFactory specFactory, String includeUrls,
                               String excludeUrls, String expires, String includeTags)
 {
     this._specFactory = specFactory;
     this.includeUrls = includeUrls;
     this.excludeUrls = excludeUrls;
     this.expires = expires;
     this.includeTags = new HashSet<string>();
     /* foreach */
     foreach (String s in includeTags.Split(','))
     {
         if (s != null && s.Trim().Length > 0)
         {
             this.includeTags.Add(s.Trim().ToLower());
         }
     }
 }
 protected ContentRewriterFeatureFactory(
     IGadgetSpecFactory specFactory,
     String includeUrls,
     String excludeUrls,
     String expires,
     String includeTags) 
 {
     this.specFactory = specFactory;
     this.includeUrls = includeUrls;
     this.excludeUrls = excludeUrls;
     this.expires = expires;
     this.includeTags = new HashSet<String>();
     foreach(String s in includeTags.Split(','))
     {
         if (s != null && s.Trim().Length > 0) 
         {
             this.includeTags.Add(s.Trim().ToLower());
         }
     }
     defaultFeature = new ContentRewriterFeature(null, includeUrls, excludeUrls, expires,
                                                 this.includeTags);
 }