You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2008/08/17 18:11:11 UTC
[DAISY] Updated: CacheEventAction
A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/1494.html
Document ID: 1494
Branch: main
Language: default
Name: CacheEventAction (unchanged)
Document Type: Sitemap Component (unchanged)
Updated on: 8/17/08 4:10:50 PM
Updated by: Lukas Lang
A new version has been created, state: draft
Parts
=====
Long description
----------------
This part has been added.
Mime type: text/xml
File name: null
Size: 920 bytes
Content:
<html>
<body>
<h3>Example</h3>
<p>This sample is built on top of the EventAwareGenerator sample.</p>
<pre> <map:pipelines>
<map:pipeline type="event-aware">
<map:match pattern="action">
<map:act type="CacheEvent">
<map:parameter name="event" value="{request-param:event}" />
</map:act>
<map:redirect-to uri="demo?pageKey={request-param:pageKey}&amp;rand={random:x}" />
</map:match>
</map:pipeline>
<map:pipelines></pre>
<h3>Configuration</h3>
<pre> <!-- Cache event bean -->
<bean name="org.apache.cocoon.acting.Action/CacheEvent"
class="org.apache.cocoon.acting.CacheEventAction" scope="prototype">
<property name="cache" ref="org.apache.cocoon.caching.Cache/EventAware"/>
</bean></pre>
</body>
</html>
Fields
======
CocoonComponentReference: Action (new field)
CocoonBlock: eventcache (new field)
FQ Java class: org.apache.cocoon.acting.CacheEventAction (new field)