Adobe-Consulting-Services/acs-aem-commons — pull request #31 by justinedelson (2013-10-12 01:28:10+00:00)
Title: Static Reference Rewriter implementation

This is an implementation of a Sling Rewriter pipeline component which can rewrite script references, CSS references, and image references (actually any HTML attribute) to prepend a host name. This is intended for use when using "cookie-less" domains.

The idea is that you have this:

And you want

For even more optimization, this component can also be configured to multiplex between N number of hosts, i.e.

This is done through a hash-based algorithm that ensures a relatively even distribution, but one which is consistent, i.e. /etc/licentlibs/granite/jquery-ui.js will always be served from static3.

Also included is a base class (AbstractTransformer) which cuts down on the boilerplate code needed for a Transformer component. And a minor enhancement to the OsgiPropertiesUtil class.