You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Gagandeep singh <ga...@gmail.com> on 2010/11/09 12:24:30 UTC
Issue 2770041: Refactoring StyleTagProxyEmbeddedUrlsRewriter to use
DefaultConfig instead
Reviewers: dev@shindig.apache.org,
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