cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r671122 - in /cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF: overview.html sitemap.xmap
Date Tue, 24 Jun 2008 10:49:59 GMT
Author: reinhard
Date: Tue Jun 24 03:49:58 2008
New Revision: 671122

URL: http://svn.apache.org/viewvc?rev=671122&view=rev
Log:
samples for servlet service sitemap components

Modified:
    cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/overview.html
    cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/overview.html
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/overview.html?rev=671122&r1=671121&r2=671122&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/overview.html
(original)
+++ cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/overview.html
Tue Jun 24 03:49:58 2008
@@ -44,6 +44,8 @@
   <h2>Servlet-Service-Components and servlet: protocol</h2>
   <ul>
     <li><a href="ssf/local">servlet:/</a>: Using a local servlet service.</li>
+    <li><a href="ssf/calling-a-transformer-servlet-service">Servlet service transformer</a>:
Call another pipeline that performs a transformation.</li>
+    <li><a href="ssf/calling-a-serializer-servlet-service">Servlet service serializer</a>:
Call another pipeline that performs the serialization step.</li>
   </ul>
   <h2>Expression language</h2>
   <ul>
@@ -62,9 +64,11 @@
     <li><a href="object-model/request-parameters?a=1&b=2&c=3">All request
parameters</a>: Print all request parameters.</li>
   </ul>
   <h2>Advanced Matching</h2>
+  <p>(using a JEXL expression to set a test value)</p>
   <ul>
     <li><a href="advanced-matching?myparam=11">Equals matcher (using an JEXL
expression to set a test value)</li>
     <li><a href="advanced-matching?myparam=22">Regular expression matcher (using
an JEXL expression to set a test value)</li>
+    <li><a href="advanced-matching?myparam=55">Ends-with matcher (using an JEXL
expression to set a test value)</li>
     <li><a href="advanced-matching">Reach the otherwise section</li>
   </ul>
   <h2>Aggregation</h2>

Modified: cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/sitemap.xmap?rev=671122&r1=671121&r2=671122&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/whiteboard/corona/trunk/corona-sample/src/main/resources/COB-INF/sitemap.xmap Tue
Jun 24 03:49:58 2008
@@ -112,6 +112,37 @@
       <map:match pattern="ssf/read-resource">
         <map:read src="servlet:/read/javascript-resource-explicit" />
       </map:match>
+      <map:match pattern="ssf/service-consumer">
+        <map:generate type="service-consumer" />
+        <map:serialize type="xml" />      
+      </map:match>
+      <map:match pattern="ssf/transformer-pipeline">
+        <map:generate type="service-consumer" />
+        <map:transform src="sax-pipeline/simple.xslt">
+          <map:parameter name="myParam" value="transformer-pipeline" />
+        </map:transform>
+        <map:serialize type="xml" />      
+      </map:match>
+      <map:match pattern="ssf/serializer-pipeline">
+        <map:generate type="service-consumer" />
+        <map:transform src="sax-pipeline/simple.xslt">
+          <map:parameter name="myParam" value="serializer-pipeline" />
+        </map:transform>
+        <map:serialize type="xml" />      
+      </map:match>
+      <map:match pattern="ssf/calling-a-transformer-servlet-service">
+        <map:generate src="sax-pipeline/simple.xml" />
+        <map:transform type="servlet-service">
+          <map:parameter name="service" value="servlet:/ssf/transformer-pipeline" />
+        </map:transform>
+        <map:serialize type="xml" />
+      </map:match>
+      <map:match pattern="ssf/calling-a-serializer-servlet-service">
+        <map:generate src="sax-pipeline/simple.xml" />
+        <map:serialize type="servlet-service">
+          <map:parameter name="service" value="servlet:/ssf/serializer-pipeline" />
+        </map:serialize>
+      </map:match>
     </map:pipeline>
 
     <!-- ~~~~~~~~~~~~~~~~ expression language ~~~~~~~~~~~~~~~ -->
@@ -155,6 +186,13 @@
             </map:transform>
             <map:serialize />
           </map:when>
+          <map:when ends-with="5">
+            <map:generate src="sax-pipeline/simple.xml" />
+            <map:transform src="sax-pipeline/simple.xslt">
+              <map:parameter name="myParam" value="{map:1}" />
+            </map:transform>
+            <map:serialize />
+          </map:when>
           <map:when regexp="2(.)">
             <map:generate src="sax-pipeline/simple.xml" />
             <map:transform src="sax-pipeline/simple.xslt">
@@ -269,8 +307,8 @@
           <map:serialize type="xhtml" status-code="404" />        
         </map:when>
         <map:otherwise>
-          <map:generate src="error-handling/500.xml" />
-          <map:serialize type="xhtml" status-code="500" />        
+          <map:generate type="exception" />
+          <map:serialize type="xml" status-code="500" />        
         </map:otherwise>
       </map:match>
       <!--



Mime
View raw message