Apache Cocoon 3 is aÂ major rewrite ofÂ Cocoon 2.2. LikeÂ Cocoon 2 it is based around the concept of pipelines and sitemaps and it is very similar toÂ Cocoon 2.2 in many respects but is slimmed down and designed to beÂ easily used with Java code (= no frameworks required!). On top of this,Â Cocoon 3 has the goal of becoming the best available platform forÂ RESTful webservices and web applications.
Key Features ofÂ Apache Cocoon 3:
Cocoon 3 consists ofÂ 3 layers. Each of this layers is packaged as separate module:
Additionally there are more optional modules:
This module doesnâ€™t have any third-party dependencies. Currently it provides three pipeline implementations:
and it provides a basic set of SAX components:
A sitemap connects a request (not necessarily a servlet request!) with a pipeline.
This module provides a servlet that connects an HTTP request with a sitemap. It works smoothly within theÂ Servlet-Service framework. The Servlet-Service framework enables theÂ inter-sitemapcommunication and provides polomorphistic features (e.g. one sitemap can extend another one which allows e.g. the implementation of fallback solutions).