Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Issue 1847052: Cajole proxied javascript responses with CajaResponseRewriter (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by chirag
Modified:
15 years, 5 months ago
Reviewers:
johnfargo, dev-remailer, Jasvir
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Introduce CajaResponseRewriter.java. This rewriter will cajole responses containing javascript if the "cajole" parameter is passed and set to 1. Example usage: curl -v "http://localhost:8080/gadgets/concat?container=default&gadget=[insert_gadget_uri]&nocache=1&type=js&1=[insert_js_uri]&cajole=1&nocache=1&debug=1" Few things left to do: 1) Cajole responses other than javascript. 2) Intelligently detect if the response is javascript instead of depending on the mime type.

Patch Set 1 #

Total comments: 2

Messages

Total messages: 6
chirag
15 years, 5 months ago (2010-08-05 07:04:16 UTC) #1
Jasvir
Under what circumstance does CajaResponseRewriter get called? http://codereview.appspot.com/1847052/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/CajaResponseRewriter.java (right): http://codereview.appspot.com/1847052/diff/1/3#newcode120 java/gadgets/src/main/java/org/apache/shindig/gadgets/render/CajaResponseRewriter.java:120: if (Boolean.TRUE.equals(RewriterUtils.isJavascript(req, ...
15 years, 5 months ago (2010-08-05 23:05:24 UTC) #2
chirag
Depends on the ProxyUriManager. A ProxyUriManager could be configured to rewrite links through the Shindig ...
15 years, 5 months ago (2010-08-05 23:33:19 UTC) #3
chirag
http://codereview.appspot.com/1847052/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/render/CajaResponseRewriter.java (right): http://codereview.appspot.com/1847052/diff/1/3#newcode120 java/gadgets/src/main/java/org/apache/shindig/gadgets/render/CajaResponseRewriter.java:120: if (Boolean.TRUE.equals(RewriterUtils.isJavascript(req, resp))) { On 2010/08/05 23:05:24, jasvir wrote: ...
15 years, 5 months ago (2010-08-05 23:33:41 UTC) #4
Jasvir
LGTM
15 years, 5 months ago (2010-08-06 21:40:55 UTC) #5
chirag
15 years, 5 months ago (2010-08-07 00:19:25 UTC) #6
Committed r983148

On 2010/08/06 21:40:55, jasvir wrote:
> LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b