One of the BuiltInLogicsheets in Cocoon

The XSP Request Logicsheet is responsible for providing access to operations that can be carried out on the HTTP Request currently being serviced by this pipeline.

The available operations directly map onto those available in the HTTPServletRequest object from the servlet API. E.g:

  • Request attributes
  • Request method
  • Request headers
  • Cookies
  • Session handles
  • etc, etc.

Some elements, e.g. get-attribute take parameters. In this case the name of the attribute whose value is being requested. These can either passed in as attributes e.g. <req:get-attribute name="..."/> or by using a child <name/> element.

Content can also be retrieved from the request as elements rather than simply text. Adding as="xml" to an element will result in the creation of a result element in it's place.

See also: http://cocoon.apache.org/2.1/userdocs/xsp/request.html

  • No labels