Michael Wechner wrote:
<snip />
Maybe we could try to implement the Atom API during the hackathon.
this would be awesome, except i am nowhere near s.f. :(
i would bet atom is pretty easy to implement, you'd just need to be able to listen for PUT, POST, DELETE on specific url's.
I have implemented now GET and PUT by using the RequestMethodSelector:
<!-- GET and PUT -->
<map:pipeline type="noncaching"> <!-- Caching Info: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html -->
<map:match pattern="*/entries/*/*/*/*/index-bxeng.xml">
<map:select type="request-metod">
<map:when test="PUT">
<map:generate type="stream"/>
<map:transform src="../../xslt/authoring/edit/addSourceTags.xsl">
<map:parameter name="source" value="content/{1}/entries/{2}/{3}/{4}/{5}/index.xml"/>
</map:transform>
<map:transform type="write-source"/>
<map:serialize type="xml" status-code="204"/> <!-- HTTP status code: 204 No Content -->
</map:when>
<map:otherwise> <!-- GET -->
<map:generate src="content/{1}/entries/{2}/{3}/{4}/{5}/index.xml"/>
<map:serialize type="xml"/>
</map:otherwise>
</map:select>
</map:match>
<map:handle-errors type="500"/>
</map:pipeline>
<!-- /GET and PUT -->
Thanks
Michael
Tony
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
