public class Renderer extends Object
| Constructor and Description |
|---|
Renderer(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
Creates a new instance of Renderer with supplied references to folders.
|
| Modifier and Type | Method and Description |
|---|---|
void |
render(Map<String,Object> content)
Render the supplied content to a file.
|
void |
renderArchive(String archiveFile)
Render an archive file using the supplied content.
|
void |
renderFeed(String feedFile)
Render an XML feed file using the supplied content.
|
void |
renderIndex(String indexFile)
Render an index file using the supplied content.
|
void |
renderSitemap(String sitemapFile)
Render an XML sitemap file using the supplied content.
|
void |
renderTags(Set<String> tags,
String tagPath)
Render tag files using the supplied content.
|
public Renderer(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
File destination,
File templatesPath,
org.apache.commons.configuration.CompositeConfiguration config)
destination - The destination foldertemplatesPath - The templates folderpublic void render(Map<String,Object> content) throws Exception
content - The content to renderDocumentExceptionpublic void renderIndex(String indexFile) throws Exception
indexFile - The name of the output fileExceptionpublic void renderSitemap(String sitemapFile) throws Exception
Exceptionpublic void renderFeed(String feedFile) throws Exception
feedFile - The name of the output fileExceptionpublic void renderArchive(String archiveFile) throws Exception
archiveFile - The name of the output fileExceptionCopyright © 2014. All Rights Reserved.