|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.generator.NoContent
public final class NoContent
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.
There is no configuration associated with this generator.
This generator does not use and require any parameter.
This generator does not have any content, so the XML content is always empty.
Since Berlioz always wraps generators' content, the final XML is always:
<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
.
To use this generator in Berlioz (in /WEB-INF/config/services.xml
):
<generator class="org.weborganic.berlioz.generator.NoContent"
name="[name]" target="[target]"/>
This Etag for this generator is always "nocontent"
.
Constructor Summary | |
---|---|
NoContent()
|
Method Summary | |
---|---|
String |
getETag(ContentRequest req)
Always returns the "nocontent" . |
void |
process(ContentRequest req,
XMLWriter xml)
Do nothing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoContent()
Method Detail |
---|
public String getETag(ContentRequest req)
"nocontent"
.
Returns the ETag for the specified content request.
getETag
in interface Cacheable
req
- the content request.
public void process(ContentRequest req, XMLWriter xml)
This is the main method of this interface, it should:
Implementation should specify which attribute or parameters are used or required.
process
in interface ContentGenerator
req
- The content request.xml
- The XML output.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |