|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.generator.GetGlobalConfig
public final class GetGlobalConfig
Returns the global properties as XML.
There is no configuration associated with this generator.
This generator does not use and require any parameter.
This generator returns a flat list of the global properties as XML as below:
<properties source="[source]">
<property name="[nameA]" value="[valueA]"/>
<property name="[nameB]" value="[valueB]"/>
<property name="[nameC]" value="[valueC]"/>
...
</properties>
This generator uses a weak etag based on the name, length and last modified date of the properties file being loaded.
Constructor Summary | |
---|---|
GetGlobalConfig()
|
Method Summary | |
---|---|
String |
getETag(ContentRequest req)
Returns a ETag based on the last modified date and length of the global propertied file. |
void |
process(ContentRequest req,
XMLWriter xml)
Produces the actual content. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetGlobalConfig()
Method Detail |
---|
public String getETag(ContentRequest req)
getETag
in interface Cacheable
req
- the content request.
public void process(ContentRequest req, XMLWriter xml) throws IOException
ContentGenerator
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.
IOException
- If an I/O error occurs while writing to the XML writer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |