org.weborganic.bastille.xml
Class GetXMLFromPath

java.lang.Object
  extended by org.weborganic.bastille.xml.GetXMLFromPath
All Implemented Interfaces:
Cacheable, ContentGenerator

public final class GetXMLFromPath
extends Object
implements ContentGenerator, Cacheable

This generator returns the content of an XML file from the specified path.

Sample Berlioz config: <generator class="org.weborganic.berlioz.ext.GetXMLFromPath" name="xml-from-path" target="main"> <parameter name="path" source="uri" value="path"/> </generator>

Since:
0.6.0

Constructor Summary
GetXMLFromPath()
           
 
Method Summary
 String getETag(ContentRequest req)
           
 void process(ContentRequest req, XMLWriter xml)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetXMLFromPath

public GetXMLFromPath()
Method Detail

getETag

public String getETag(ContentRequest req)
Specified by:
getETag in interface Cacheable

process

public void process(ContentRequest req,
                    XMLWriter xml)
             throws BerliozException,
                    IOException
Specified by:
process in interface ContentGenerator
Throws:
BerliozException
IOException