You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/07/10 03:58:03 UTC
[Cocoon Wiki] Updated: GzipPipeline
Date: 2004-07-09T18:58:03
Editor: JoergHeinicke <jo...@gmx.de>
Wiki: Cocoon Wiki
Page: GzipPipeline
URL: http://wiki.apache.org/cocoon/GzipPipeline
no comment
Change Log:
------------------------------------------------------------------------------
@@ -7,40 +7,40 @@
=== Usage ===
First declare the new components in the sitemap:
-{{{
-<map:actions>
- <map:action name="gzip" logger="pipe.gzip" src="fcc.ima.cocoon.GzipAction"/>
-</map:actions>
-<map:pipes default="gzip-no-cache">
- <map:pipe name="gzip-no-cache" src="fcc.ima.cocoon.GzipNonCachingProcessingPipeline"
- logger="pipe.gzip"/>
-</map:pipes>
+{{{
+<map:actions>
+ <map:action name="gzip" logger="pipe.gzip" src="fcc.ima.cocoon.GzipAction"/>
+</map:actions>
+<map:pipes default="gzip-no-cache">
+ <map:pipe name="gzip-no-cache" src="fcc.ima.cocoon.GzipNonCachingProcessingPipeline"
+ logger="pipe.gzip"/>
+</map:pipes>
}}}
Create a pipe that is gzip aware:
-{{{
-<map:pipelines>
- <map:pipeline type="gzip-no-cache">
- <map:match src="my-url">
- <map:act type='gzip'/>
- <map:read src='my-file'/>
- </map:match>
- </map:pipeline>
-</map:pipelines>
+{{{
+<map:pipelines>
+ <map:pipeline type="gzip-no-cache">
+ <map:match src="my-url">
+ <map:act type='gzip'/>
+ <map:read src='my-file'/>
+ </map:match>
+ </map:pipeline>
+</map:pipelines>
}}}
In order to activate gzip compression use:
-{{{
-<map:act type='gzip'/>
+{{{
+<map:act type='gzip'/>
}}}
and for deactivating it:
-{{{
-<map:act type='gzip'>
- <map:parameter name='use' value='0'/>
-</map:act>
+{{{
+<map:act type='gzip'>
+ <map:parameter name='use' value='0'/>
+</map:act>
}}}
You can (de)activate compression as many times as needed in a pipeline.
@@ -61,7 +61,7 @@
=== See also ===
* [:Gzip_XML_Serializer]
- * [:Cocoon_and_Apache_mod_gzip]
+ * [:Cocoon%and%Apache%mod%gzip]
Comments and improvements are welcome!.