public class StaticPageUtil
extends java.lang.Object
This is accomplished using a simple FreeMarker template
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
renderHTML(java.util.Collection<Component> components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
|
static java.lang.String |
renderHTML(Component... components)
Given the specified components, render them to a stand-alone HTML page (which is returned as a String)
|
static java.lang.String |
renderHTMLContent(Component... components) |
static void |
saveHTMLFile(java.io.File outputFile,
Component... components)
A version of
renderHTML(Component...) that exports the resulting HTML to the specified File. |
static void |
saveHTMLFile(java.lang.String outputPath,
Component... components)
A version of
renderHTML(Component...) that exports the resulting HTML to the specified path. |
public static java.lang.String renderHTML(java.util.Collection<Component> components)
components
- Components to renderpublic static java.lang.String renderHTML(Component... components)
components
- Components to renderpublic static java.lang.String renderHTMLContent(Component... components) throws java.lang.Exception
java.lang.Exception
public static void saveHTMLFile(java.lang.String outputPath, Component... components) throws java.io.IOException
renderHTML(Component...)
that exports the resulting HTML to the specified path.outputPath
- Output pathcomponents
- Components to renderjava.io.IOException
public static void saveHTMLFile(java.io.File outputFile, Component... components) throws java.io.IOException
renderHTML(Component...)
that exports the resulting HTML to the specified File.outputFile
- Output pathcomponents
- Components to renderjava.io.IOException