Reviewers: [email protected],

Description:


Currently StyleTagProxyEmbeddedUrlsRewriter uses the featureConfigFactory to
fetch the gadget spec.

However, since accel html web pages don't really have a gadget (In
AccelHandler.getProxyUri(), we create a dummy gadget object based on the
original HttpRequest object and set its url to the html page being rendered),
feature config factory ends up fetching the content of html web page again,
rewrites it and falls back to default config since its not able to parse it as
gadget xml.

Hence this change allows us to directly use default config for the
StyleTagProxyEmbeddedUrlsRewriter (which is an accel specific rewriter).


Please review this at http://codereview.appspot.com/2770041/

Affected files:
  M
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/StyleTagProxyEmbeddedUrlsRewriter.java

Thanks
Gagan

Reply via email to