DescriptionIntroduces 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
MessagesTotal messages: 9
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||