View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cocoon/trunk/server/src/webapp/sitemap.xmap
Revision: 1589
Committed: Fri Mar 24 12:56:21 2006 UTC (15 years, 1 month ago) by mpfingsthorn
File size: 8871 byte(s)
Log Message:
error reporting fixes to report the right http status codes.

File Contents

# User Rev Content
1 unico 188 <?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="org.apache.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 mpfingsthorn 1589 <exception name="not-found"
99     class="java.io.FileNotFoundException"
100     />
101 unico 188 <exception name="invalid-continuation"
102     class="org.apache.cocoon.components.flow.InvalidContinuationException"
103     />
104     <exception class="java.lang.Throwable" unroll="true"/>
105     </map:selector>
106     <map:selector name="parameter"
107     src="org.apache.cocoon.selection.ParameterSelector"
108     logger="sitemap.selector.parameter"
109     />
110     </map:selectors>
111     <map:pipes default="caching">
112     <map:pipe name="caching"
113 unico 217 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
114     logger="sitemap.pipes.caching">
115 mpfingsthorn 1589 <!-- Commented out caching to make error reporting work -->
116     <!--parameter name="outputBufferSize" value="32768"/-->
117 unico 188 </map:pipe>
118     <map:pipe name="ecaching"
119 unico 217 src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
120     logger="sitemap.pipes.ecaching">
121 unico 188 <parameter name="cache-role" value="org.apache.cocoon.caching.Cache/EventAware"/>
122 mpfingsthorn 1589 <!-- Commented out caching to make error reporting work -->
123     <!--parameter name="outputBufferSize" value="32768"/-->
124 unico 188 </map:pipe>
125 unico 217 <map:pipe name="noncaching"
126     src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"
127     logger="sitemap.pipes.noncaching">
128 mpfingsthorn 1589 <!-- A 1 MB (1048576 B) buffer for the noncaching pipeline, for pdfs and things? -->
129     <!-- Leaving it at 32KB for now, since it doesn't really matter here -->
130 unico 188 <parameter name="outputBufferSize" value="32768"/>
131     </map:pipe>
132     </map:pipes>
133     </map:components>
134    
135     <map:pipelines>
136    
137     <map:pipeline id="system-private" internal-only="true"/>
138    
139     <map:pipeline id="system-public">
140    
141     <map:match pattern="system/images/*.gif">
142     <map:read mime-type="images/gif" src="resources/images/{1}.gif"/>
143     </map:match>
144    
145     <map:match pattern="system/styles/*.css">
146     <map:read mime-type="text/css" src="resources/styles/{1}.css"/>
147     </map:match>
148    
149     <map:match pattern="system/scripts/*.js">
150     <map:read mime-type="text/javascript" src="resources/scripts/{1}.js"/>
151     </map:match>
152    
153     <map:match pattern="system/favicon.ico">
154     <map:read mime-type="image/x-icon" src="resources/icons/hippo.ico"/>
155     </map:match>
156    
157     <map:match type="site">
158     <map:mount src="{src}" uri-prefix="{uri-prefix}"/>
159     </map:match>
160    
161     <map:select id="domains" type="parameter">
162     <map:parameter name="parameter-selector-test" value="{request:serverName}"/>
163     </map:select>
164    
165     <map:select id="cli" type="parameter">
166     <map:parameter name="parameter-selector-test" value="{request-param:user-agent}"/>
167     </map:select>
168    
169     <!-- welcome page -->
170     <map:match pattern="">
171     <map:generate src="welcome.xml"/>
172     <map:transform src="welcome.xslt">
173     <map:parameter name="contextPath" value="{request:contextPath}"/>
174     <map:parameter name="year" value="{cocoon-properties:/year}"/>
175     </map:transform>
176     <map:serialize type="html"/>
177     </map:match>
178    
179     <map:match pattern="status">
180     <map:generate type="status"/>
181     <map:transform type="xslt" src="stylesheets/system/status2html.xslt"/>
182     <map:serialize/>
183     </map:match>
184    
185     </map:pipeline>
186    
187     <map:handle-errors>
188     <map:select type="exception">
189    
190     <map:when test="not-found">
191     <map:generate type="notifying"/>
192     <map:transform src="stylesheets/system/error2html.xslt">
193     <map:parameter name="pageTitle" value="Resource not found"/>
194     </map:transform>
195     <map:serialize status-code="404"/>
196     </map:when>
197    
198     <map:when test="invalid-continuation">
199     <map:generate src="not-found.xml"/>
200     <map:transform src="welcome.xslt"/>
201     <map:serialize status-code="404"/>
202     </map:when>
203    
204     <map:otherwise>
205     <map:generate type="notifying"/>
206     <map:transform src="stylesheets/system/error2html.xslt"/>
207     <map:serialize status-code="500"/>
208     </map:otherwise>
209     </map:select>
210    
211     </map:handle-errors>
212     </map:pipelines>
213     </map:sitemap>

Properties

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