DescriptionIntroduces interface ProxytUriManager, to be used in the content proxy. Like other UriManager classes, it provides a well-encapsulated API between URI generation and consumption.
DefaultProxyUriManager is provided as a default implementation of same.
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.proxy" 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 ProxyServlet
to use the new interface, along with attendant rewriter changes.
Patch Set 1 #
Total comments: 5
Patch Set 2 : (also)Improving symmetry of make/validate APIs. Ridding API of Gadget context object. Other updates. #Patch Set 3 : Symmetric APIs. Some unused params, at the benefit of fewer class types. #
Total comments: 4
MessagesTotal messages: 7
|
|||||||||||||||||||||||||||||||||||||