Author: thorsten Date: Thu Aug 21 03:29:35 2008 New Revision: 687697 URL: http://svn.apache.org/viewvc?rev=687697&view=rev Log: Adding more docu
Modified: forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/acting/ResourceTypeAction.java Modified: forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/acting/ResourceTypeAction.java URL: http://svn.apache.org/viewvc/forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/acting/ResourceTypeAction.java?rev=687697&r1=687696&r2=687697&view=diff ============================================================================== --- forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/acting/ResourceTypeAction.java (original) +++ forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/acting/ResourceTypeAction.java Thu Aug 21 03:29:35 2008 @@ -17,22 +17,23 @@ package org.apache.forrest.dispatcher.acting; /** * Looks up a meta data file to determine which resource type should be returned. - */ -/** - * component declaration (lm and sitemap) + * Will parse the document and looks for the {$resourceTypeElement}. + * If found the action returns {$resourceTypeBase}{$resourceTypeElement}. + * <p> + * component declaration (lm and sitemap):<br> * <action name="resourceTypeAction" * src="org.apache.forrest.dispatcher.acting.ResourceTypeAction"/> - * - *pipline usage lm -* <act type="resourceTypeAction"> -* <parameter value="{1}" name="request"/> -* <parameter value="{project:content.xdocs}" name="projectDir"/> -* <parameter value="lm://dispatcher.structurer.resourceType." name="resourceTypeBase"/> -* <parameter value=".xml.meta" name="metaExtension"/> -* <parameter value="resourceType" name="resourceTypeElement"/> -* <parameter value="http://apache.org/cocoon/lenya/page-envelope/1.0" name="resourceTypeElementNS"/> -* <!-- Meta data based --> -* <location src="{uri}" /> + *<p> + *pipline usage lm<br> +* <act type="resourceTypeAction"><br> +* <parameter value="{1}" name="request"/><br> +* <parameter value="{project:content.xdocs}" name="projectDir"/><br> +* <parameter value="lm://dispatcher.structurer.resourceType." name="resourceTypeBase"/><br> +* <parameter value=".xml.meta" name="metaExtension"/><br> +* <parameter value="resourceType" name="resourceTypeElement"/><br> +* <parameter value="http://apache.org/cocoon/lenya/page-envelope/1.0" name="resourceTypeElementNS"/><br> +* <!-- Meta data based --><br> +* <location src="{uri}" /><br> * </act> */ import java.io.IOException;