public interface ContentGenerator
Each content generator performs a particular function and should write the results onto the given XML writer.
Modifier and Type | Method and Description |
---|---|
void |
process(ContentRequest req,
org.pageseeder.xmlwriter.XMLWriter xml)
Produces the actual content.
|
void process(ContentRequest req, org.pageseeder.xmlwriter.XMLWriter xml) throws BerliozException, IOException
This is the main method of this interface, it should:
Implementation should specify which attribute or parameters are used or required.
req
- The content request.xml
- The XML output.BerliozException
- If an exception is thrown, it should be wrapped into a Berlioz
exception in order to provide additional details.IOException
- If an I/O error occurs while writing to the XML writer.Copyright © 2016 Allette Systems. All rights reserved.