View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cocoon/trunk/server/src/webapp/sitemap.xmap
Revision: 3430
Committed: Tue Sep 19 10:13:03 2006 UTC (14 years, 2 months ago) by nvankampenhout
File size: 10892 byte(s)
Log Message:
(HIPCO-24) Added 'store' sitemap parameter which contains the hash of the store for which the cache keys must be displayed

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
3 <map:components>
4 <map:generators default="file">
5 <map:generator name="file"
6 src="org.apache.cocoon.generation.FileGenerator"
7 label="content"
8 logger="sitemap.generator.file"
9 pool-min="4" pool-max="32" pool-grow="4"
10 />
11 <map:generator name="jx"
12 src="org.apache.cocoon.generation.JXTemplateGenerator"
13 label="content"
14 logger="sitemap.generator.jx"
15 pool-min="4" pool-max="32" pool-grow="4"
16 />
17 <map:generator name="status"
18 src="nl.hippo.cocoon.generation.StatusGenerator"
19 label="content"
20 logger="sitemap.generator.status"
21 pool-min="4" pool-max="32" pool-grow="4"
22 />
23 <map:generator name="notifying" src="org.apache.cocoon.sitemap.NotifyingGenerator"/>
24 </map:generators>
25 <map:transformers default="xslt">
26 <map:transformer name="xslt"
27 src="org.apache.cocoon.transformation.TraxTransformer"
28 logger="sitemap.transformer.xslt"
29 pool-min="4" pool-max="32" pool-grow="2">
30 <use-request-parameters>false</use-request-parameters>
31 <use-session-parameters>false</use-session-parameters>
32 <use-cookie-parameters>false</use-cookie-parameters>
33 <xslt-processor-role>xalan</xslt-processor-role>
34 <check-includes>true</check-includes>
35 </map:transformer>
36 <map:transformer name="xsltc"
37 logger="sitemap.transformer.xsltc"
38 src="org.apache.cocoon.transformation.TraxTransformer"
39 pool-min="4" pool-max="32" pool-grow="4">
40 <use-request-parameters>false</use-request-parameters>
41 <use-session-parameters>false</use-session-parameters>
42 <use-cookie-parameters>false</use-cookie-parameters>
43 <xslt-processor-role>xsltc</xslt-processor-role>
44 <check-includes>true</check-includes>
45 </map:transformer>
46 <map:transformer name="webdav"
47 src="nl.hippo.cocoon.transformation.WebDAVTransformer"
48 logger="sitemap.transformers.webdav"
49 pool-min="4" pool-max="32" pool-grow="4">
50 <parameter name="httpstate" value="site:httpstate"/>
51 </map:transformer>
52 </map:transformers>
53 <map:serializers default="html">
54 <map:serializer name="links"
55 logger="sitemap.serializer.links"
56 src="org.apache.cocoon.serialization.LinkSerializer"
57 pool-min="4" pool-max="32" pool-grow="4"
58 />
59 <map:serializer name="xml"
60 logger="sitemap.serializer.xml"
61 mime-type="text/xml"
62 src="org.apache.cocoon.serialization.XMLSerializer"
63 pool-min="4" pool-max="32" pool-grow="4"
64 />
65 <map:serializer name="html"
66 logger="sitemap.serializer.html"
67 mime-type="text/html"
68 src="org.apache.cocoon.serialization.HTMLSerializer"
69 pool-min="4" pool-max="32" pool-grow="4">
70 <doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
71 <doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
72 </map:serializer>
73 </map:serializers>
74 <map:readers default="resource">
75 <map:reader name="resource"
76 src="org.apache.cocoon.reading.ResourceReader"
77 logger="sitemap.reader.resource"
78 pool-min="4" pool-max="32" pool-grow="4"
79 />
80 </map:readers>
81 <map:matchers default="wildcard">
82 <map:matcher name="wildcard"
83 src="org.apache.cocoon.matching.WildcardURIMatcher"
84 logger="sitemap.matcher.wildcard"
85 />
86 <map:matcher name="site"
87 src="nl.hippo.cocoon.matching.SiteMatcher"
88 logger="sitemap.matcher.site"
89 />
90 </map:matchers>
91 <map:selectors default="parameter">
92 <map:selector name="exception"
93 src="org.apache.cocoon.selection.ExceptionSelector"
94 logger="sitemap.selector.exception">
95 <exception name="not-found"
96 class="org.apache.cocoon.ResourceNotFoundException"
97 />
98 <exception name="not-found"
99 class="java.io.FileNotFoundException"
100 />
101 <exception name="invalid-continuation"
102 class="org.apache.cocoon.components.flow.InvalidContinuationException"
103 />
104 <exception name="not-found"
105 class="org.apache.excalibur.source.SourceNotFoundException"
106 />
107 <exception class="java.lang.Throwable" unroll="true"/>
108 </map:selector>
109 <map:selector name="parameter"
110 src="org.apache.cocoon.selection.ParameterSelector"
111 logger="sitemap.selector.parameter"
112 />
113 </map:selectors>
114 <map:actions>
115 <map:action name="clear-cache"
116 logger="sitemap.action.clear-cache"
117 src="org.apache.cocoon.acting.ClearCacheAction"
118 />
119 <map:action name="clear-eventawaretransientstore"
120 logger="sitemap.action.clear-cache"
121 src="nl.hippo.cocoon.acting.ClearEventAwareTransientStoreAction"
122 />
123 </map:actions>
124 <map:pipes default="caching">
125 <map:pipe name="caching"
126 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
127 logger="sitemap.pipes.caching">
128 <!-- Commented out caching to make error reporting work -->
129 <!--parameter name="outputBufferSize" value="32768"/-->
130 </map:pipe>
131 <map:pipe name="ecaching"
132 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
133 logger="sitemap.pipes.ecaching">
134 <parameter name="cache-role" value="org.apache.cocoon.caching.Cache/EventAware"/>
135 <!-- Commented out caching to make error reporting work -->
136 <!--parameter name="outputBufferSize" value="32768"/-->
137 </map:pipe>
138 <map:pipe name="noncaching"
139 src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"
140 logger="sitemap.pipes.noncaching">
141 <!-- A 1 MB (1048576 B) buffer for the noncaching pipeline, for pdfs and things? -->
142 <!-- Leaving it at 32KB for now, since it doesn't really matter here -->
143 <parameter name="outputBufferSize" value="32768"/>
144 </map:pipe>
145 </map:pipes>
146 </map:components>
147
148 <map:pipelines>
149
150 <map:pipeline id="system-private" internal-only="true"/>
151
152 <map:pipeline id="system-public">
153
154 <map:match pattern="system/images/*.gif">
155 <map:read mime-type="images/gif" src="resources/images/{1}.gif"/>
156 </map:match>
157
158 <map:match pattern="system/styles/*.css">
159 <map:read mime-type="text/css" src="resources/styles/{1}.css"/>
160 </map:match>
161
162 <map:match pattern="system/scripts/*.js">
163 <map:read mime-type="text/javascript" src="resources/scripts/{1}.js"/>
164 </map:match>
165
166 <map:match pattern="system/favicon.ico">
167 <map:read mime-type="image/x-icon" src="resources/icons/hippo.ico"/>
168 </map:match>
169
170 <map:match type="site">
171 <map:mount src="{src}" uri-prefix="{uri-prefix}"/>
172 </map:match>
173
174 <map:select id="domains" type="parameter">
175 <map:parameter name="parameter-selector-test" value="{request:serverName}"/>
176 </map:select>
177
178 <map:select id="cli" type="parameter">
179 <map:parameter name="parameter-selector-test" value="{request-param:user-agent}"/>
180 </map:select>
181
182 <!-- welcome page -->
183 <map:match pattern="">
184 <map:generate src="welcome.xml"/>
185 <map:transform src="welcome.xslt">
186 <map:parameter name="contextPath" value="{request:contextPath}"/>
187 <map:parameter name="year" value="{cocoon-properties:/year}"/>
188 </map:transform>
189 <map:serialize type="html"/>
190 </map:match>
191
192 <map:match pattern="status">
193 <map:generate type="status">
194 <map:parameter name="store" value="{request-param:store}"/>
195 </map:generate>
196 <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
197 <map:serialize/>
198 </map:match>
199
200 <map:match pattern="clearcache">
201 <map:act type="clear-cache">
202 <map:generate type="status"/>
203 <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
204 <map:serialize/>
205 </map:act>
206 </map:match>
207
208 <map:match pattern="clearcache-repository-doc">
209 <map:act type="clear-cache">
210 <map:parameter name="cache-role" value="org.apache.cocoon.caching.Cache/EventAwareRepositoryDoc"/>
211 <map:generate type="status"/>
212 <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
213 <map:serialize/>
214 </map:act>
215 </map:match>
216
217 <map:match pattern="clearcache-repository-binary">
218 <map:act type="clear-cache">
219 <map:parameter name="cache-role" value="org.apache.cocoon.caching.Cache/EventAwareRepositoryBinary"/>
220 <map:generate type="status"/>
221 <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
222 <map:serialize/>
223 </map:act>
224 </map:match>
225
226 <map:match pattern="clear-eventawaretransientstore">
227 <map:act type="clear-eventawaretransientstore">
228 <map:generate type="status"/>
229 <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
230 <map:serialize/>
231 </map:act>
232 </map:match>
233
234 </map:pipeline>
235
236 <map:handle-errors>
237 <map:select type="exception">
238
239 <map:when test="not-found">
240 <map:generate type="notifying"/>
241 <map:transform src="stylesheets/system/error2html.xslt">
242 <map:parameter name="pageTitle" value="Resource not found"/>
243 </map:transform>
244 <map:serialize status-code="404"/>
245 </map:when>
246
247 <map:when test="invalid-continuation">
248 <map:generate src="not-found.xml"/>
249 <map:transform src="welcome.xslt"/>
250 <map:serialize status-code="404"/>
251 </map:when>
252
253 <map:otherwise>
254 <map:generate type="notifying"/>
255 <map:transform src="stylesheets/system/error2html.xslt"/>
256 <map:serialize status-code="500"/>
257 </map:otherwise>
258 </map:select>
259
260 </map:handle-errors>
261 </map:pipelines>
262 </map:sitemap>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision