As well as being able to service http requests, Cocoon uses protocols to retrieve information from other sources. These include the standard protocols like http and file, as well as some special "internal" protocols.

"Internal" protocols

The cocoon: protocol supports the raw: subprotocol. When the subprotocol is appended, the request parameters of the original request are not forwarded to the internal pipelines.

The standard Java protocols

See Aggregator for more examples of how these can be used.

NOTE: It's possible to combine protocols and archives in one URI. For example, to get an jar archive via HTTP and to read the zipped picture "mypic.gif", located in "/mydata/pictures", you have to use an URI like this:


It's important to use the ! after "mypictures.jar" to divide the path of the picture in the jar from the jar itself.

Protocols (last edited 2009-09-20 23:40:52 by localhost)