Web Content Application 2 was redesigned and rewritten in order to maximize its modularity and support various use cases.
The Web Content Application 2 consists of four modules:
|Module Name||Artifact ID||Description|
Simple Content Rewriting API and default implementation components to be able to do simple text-basd rewriting or use other richer content rewriting framework such as HtmlCleaner.
Basically this module was designed to leverage other content rewriting frameworks unless the content rewriting requirements are simple enough to use simple text-based content rewriting. Therefore, this module limited its responsibility to defining very basic APIs such as
HTTP Reverse Proxy application framework for servlets, filters or portlets, providing YAML based proxy path mapping configurations and default content rewriter components.
Unlike the reverse proxy servlet implementation in Web Content Application 1, this module splits its responsibilities to several commands (
Also, instead of trying to implement every feature in a servlet with a lot of possible configuration parameters as we did in Web Content Application 1, this module simply provides generic reverse proxy servlet and filter as well as simple implementations (
Therefore, developers can easily extend those classes to add (custom) behaviors (by adding a custom command for instance) in serve a reverse proxy in different forms.
Various portlets serving remote content through either server-side HTTP Client handling or IFrame-based client-side page handling.
Packaged WAR module having apa-webcontent2-content-rewriter, apa-webcontent2-reverse-proxy, apa-webcontent2-portlets, and configurations and examples for servlets, filters and others.