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

Issue 217091: Introduce ConcatUriManager (Closed)

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

Description

Introduces interface ConcatUriManager, the intent of which is to be used in Concat-based rewriters *and* in ConcatProxyServlet. It provides a well-defined API between URI generation and consumption. In addition to the interface definition, DefaultConcatUriManager is introduced. It provides a base implementation of ConcatUriManager that is conceptually consistent with all the other UriManager implementations provided. In particular: * Defines its own ContainerConfig "gadgets.uri.concat" namespace with "host" and "path" values used for Host: and path assignment, respectively. * Provides a symmetric makeUri/validateUri pair * Provides a Versioner interface, in this case supporting batching, for versioning URLs or batches of same. No default Versioner implementation is provided in this CL. Neither the interface nor implementation are used in this CL, as the intent is to keep CLs as small as possible. A follow-up CL will change ConcatProxyServlet to use the new interface, along with attendant rewriter changes.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Accommodates zhoresh@'s first round of comments. #

Patch Set 3 : Improving symmetry of make/validate APIs. Ridding API of Gadget context object. Other updates. #

Total comments: 3

Patch Set 4 : Symmetric APIs. For concat this isn't 100% true (@see ConcatData) but is much closer. #

Total comments: 1

Messages

Total messages: 9
johnfargo
15 years, 11 months ago (2010-02-23 02:58:50 UTC) #1
zhoresh
http://codereview.appspot.com/217091/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java (right): http://codereview.appspot.com/217091/diff/1/3#newcode73 java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java:73: List<ConcatUri> makeConcatUri(Gadget gadget, List<List<Uri>> resourceUris, I am not clear ...
15 years, 11 months ago (2010-02-23 22:52:14 UTC) #2
johnfargo
Accommodates zhoresh@'s first round of comments.
15 years, 11 months ago (2010-02-24 01:35:07 UTC) #3
johnfargo
http://codereview.appspot.com/217091/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java (right): http://codereview.appspot.com/217091/diff/1/3#newcode84 java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java:84: public static final class ConcatUri { On 2010/02/23 22:52:14, ...
15 years, 11 months ago (2010-02-24 01:35:23 UTC) #4
johnfargo
Improving symmetry of make/validate APIs. Ridding API of Gadget context object. Other updates.
15 years, 10 months ago (2010-02-27 00:24:49 UTC) #5
zhoresh
http://codereview.appspot.com/217091/diff/2001/3001 File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java (right): http://codereview.appspot.com/217091/diff/2001/3001#newcode68 java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java:68: * @param Gadget context object for the request gadget ...
15 years, 10 months ago (2010-03-01 19:33:49 UTC) #6
johnfargo
Symmetric APIs. For concat this isn't 100% true (@see ConcatData) but is much closer.
15 years, 10 months ago (2010-03-02 01:12:52 UTC) #7
zhoresh
LGTM, Thanks! Just a minor suggestion. http://codereview.appspot.com/217091/diff/3011/2006 File java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java (right): http://codereview.appspot.com/217091/diff/3011/2006#newcode160 java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java:160: List<String> version(List<List<Uri>> resourceUris, ...
15 years, 10 months ago (2010-03-02 16:39:20 UTC) #8
johnfargo
15 years, 10 months ago (2010-03-03 18:58:01 UTC) #9
Thanks Ziv -- code committed. I'll be doing some cleanup passes after this
raft of CLs and will look into the ConcatUri vs. Uri replacement.

On Tue, Mar 2, 2010 at 8:39 AM, <zhoresh@gmail.com> wrote:

> LGTM, Thanks!
> Just a minor suggestion.
>
>
> http://codereview.appspot.com/217091/diff/3011/2006
>
> File
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java
> (right):
>
> http://codereview.appspot.com/217091/diff/3011/2006#newcode160
>
>
java/gadgets/src/main/java/org/apache/shindig/gadgets/uri/ConcatUriManager.java:160:
> List<String> version(List<List<Uri>> resourceUris, String container);
> Since this is a specific versioner, you might save some code by passing
> in ConcatUri instead of Uri (for both version and validate)
>
>
> http://codereview.appspot.com/217091/show
>
Sign in to reply to this message.

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