Package org.apache.shindig.gadgets.rewrite

Examples of org.apache.shindig.gadgets.rewrite.ContentRewriterFeatureFactory


  }

  private GadgetRewriter createRewriter(Set<String> tags, Set<String> attributes) {
    Set<String> newTags = new HashSet<String>(tags);
    newTags.addAll(DEFAULT_TAGS);
    ContentRewriterFeatureFactory rewriterFeatureFactory =
        new ContentRewriterFeatureFactory(null, new FakeContainerConfig());
    return new SanitizingGadgetRewriter(newTags, attributes, rewriterFeatureFactory,
        rewriterUris, new CajaCssSanitizer(new CajaCssParser()));
  }
View Full Code Here


    }
    return mc.getContent();
  }

  private RequestRewriter createRewriter(Set<String> tags, Set<String> attributes) {
    ContentRewriterFeatureFactory rewriterFeatureFactory =
        new ContentRewriterFeatureFactory(null, new FakeContainerConfig());
    return new SanitizingRequestRewriter(rewriterFeatureFactory,
        rewriterUris, new CajaCssSanitizer(new CajaCssParser()));
  }
View Full Code Here

    }
    return mc.getContent();
  }

  private RequestRewriter createRewriter(Set<String> tags, Set<String> attributes) {
    ContentRewriterFeatureFactory rewriterFeatureFactory =
        new ContentRewriterFeatureFactory(null, ".*", "", "HTTP", "embed,img,script,link,style", "false");
    return new SanitizingRequestRewriter(rewriterFeatureFactory,
        new CajaCssSanitizer(new CajaCssParser()), new DefaultSanitizingProxyingLinkRewriterFactory(rewriterUris));
  }
View Full Code Here

  }

  private GadgetRewriter createRewriter(Set<String> tags, Set<String> attributes) {
    Set<String> newTags = new HashSet<String>(tags);
    newTags.addAll(DEFAULT_TAGS);
    ContentRewriterFeatureFactory rewriterFeatureFactory =
        new ContentRewriterFeatureFactory(null, ".*", "", "HTTP", "embed,img,script,link,style", "false");
    return new SanitizingGadgetRewriter(newTags, attributes, rewriterFeatureFactory,
        new CajaCssSanitizer(new CajaCssParser()), new DefaultSanitizingProxyingLinkRewriterFactory(rewriterUris));
  }
View Full Code Here

TOP

Related Classes of org.apache.shindig.gadgets.rewrite.ContentRewriterFeatureFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.