private Processor() { gadgetSpecFactory = DefaultGadgetSpecFactory.Instance; substituter = new VariableSubstituter(); blacklist = new BasicGadgetBlacklist(""); containerConfig = JsonContainerConfig.Instance; }
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()); } } }
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); }
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); }
/** * Public constructor. * * @param store an {@link OAuthStore} that can store and retrieve OAuth * tokens, as well as information about service providers. */ public GadgetOAuthTokenStore(OAuthStore store, IGadgetSpecFactory specFactory) { this.store = store; this.specFactory = specFactory; }