Apache Cocoon Article Index for
Apache
Website Links For
Apache
 

Information About

Apache Cocoon





SITEMAP


The sitemap is at the core of Cocoon. It's here that the web site developer configures the different Cocoon components, and defines the Client/Server interactions in what Cocoon refers to as the ''Pipeline''.


COMPONENTS


The components within Cocoon are grouped by function.


Matchers


Matchers are used to match user requests such as URL s or Cookie s against Wildcard or Regular Expression patterns. Each user request is sent through the pipeline until a match is made. It is from here that a particular request is processed.


Generators


Generators create a Stream of data for further processing. This stream can be generated from an existing XML document or there are generators that can create XML from scratch to represent something on the server, such as a directory structure or image data.


Transformers


Transformers take a stream of data and change them in some way. The most common transformations are performed with XSLT to change one xml format into another. But there are also transformers that take other forms of data ( SQL for example).


Serializers


A serializer takes a data stream, makes any required changes, and sends it to the client. There are serializers that allow you to send the data in many different formats including HTML , XHTML , PDF , RTF , SVG , WML and Plain Text , for example.


Selectors

Selectors offer the same capabilities as a switch statement. They are able to select particular elements of a request and choose the correct pipeline part to use.


Views


Views are mainly used for testing. A view is an exit point in a pipeline. You can put out the XML-Stream which is produced till this point. So you can see if the application is working right.


Readers

Publish content without parsing it (no XML processing). Used for images and such.


Actions

Are Java classes that execute some business logic.....


THE PIPELINE


The ''Pipeline'' is used to define how the different Cocoon components interact with different Request s to produce a Response .


EXTERNAL LINKS