cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r720135 - /cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java
Date Mon, 24 Nov 2008 08:50:01 GMT
Author: felixk
Date: Mon Nov 24 00:50:00 2008
New Revision: 720135

URL: http://svn.apache.org/viewvc?rev=720135&view=rev
Log:
Fix documentation. Attribute is 'name' instead of 'type', add part where the configuration
has to be put in the sitemap.xmap

Modified:
    cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java

Modified: cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java?rev=720135&r1=720134&r2=720135&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java
(original)
+++ cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/selection/ExceptionSelector.java
Mon Nov 24 00:50:00 2008
@@ -34,13 +34,18 @@
  * <p>
  * Example configuration :
  * <pre>
- *   &lt;map:selector type="error" src="....ExceptionSelector">
- *     &lt;exception class="org.xml.sax.SAXException" name="sax" unroll="true"/>
- *     &lt;exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/>
- *     &lt;exception class="org.apache.cocoon.ProcessingException" unroll="true"/>
- *     &lt;exception name="denied" class="java.security.SecurityException"/>
- *     &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure"/>
- *   &lt;/map:selector>
+ *   &lt;map:components>
+ *     &lt;map:selectors>
+ *        ....
+ *       &lt;map:selector name="error" src="org.apache.cocoon.selection.ExceptionSelector">
+ *         &lt;exception class="org.xml.sax.SAXException" name="sax" unroll="true"/>
+ *         &lt;exception name="not-found" class="org.apache.cocoon.ResourceNotFoundException"/>
+ *         &lt;exception class="org.apache.cocoon.ProcessingException" unroll="true"/>
+ *         &lt;exception name="denied" class="java.security.SecurityException"/>
+ *         &lt;exception name="denied" class="my.comp.auth.AuthenticationFailure"/>
+ *       &lt;/map:selector>
+ *     &lt;selectors/>
+ *   &lt;map:components/>
  * </pre>
  * This example shows several features :
  * <li>the "class" is the class name of the exception (which can be any <code>Throwable</code>),</li>



Mime
View raw message