Generator: NoContent
Class name: | org.weborganic.berlioz.generator.NoContent |
---|---|
Version: | Berlioz 0.9.0 - 13 October 2011 |
Library: | Berlioz |
Cacheable: | Yes |
Generated: | 2012-12-21 |
Description
Generates no content.
This content generator is useful for when the XML header already contains enough information for the purpose of application.
This generator can also be useful to be picked up by the XSLT, even if no content is required.
Configuration
There is no configuration associated with this generator.
Parameters
There are no parameters.
Returned XML
This generator does not have any content, so the XML is generally empty.
Since Berlioz always wraps generators’ content, the final XML is:
<content generator="org.weborganic.berlioz.generator.NoContent" name="[name]" target="[target]" status="ok"/>
Note: since this generator does produce any data, the return status is always ok
.
Usage
To use this generator in Berlioz (in /WEB-INF/config/services.xml
):
<generator class="org.weborganic.berlioz.generator.NoContent" name="[name]" target="[target]"/>
Etag
The Etag for this generator is always nocontent
.