Class TemplatePage
java.lang.Object
fc.util.pagetemplate.TemplatePage
A superclass for generated template pages. All templates derive from this class. Runs
outside the web environment (intended to be invoked from the command line)
Pages are always assumed to be written in UTF-8 (a superset of regular ascii/IS0-8859-1). If the template page is sent as HTML to a device (via some outside mechanism that uses the templates as part of its workflow), then the HTML contained in the page template should set the appropriate content type/encoding meta header to say UTF-8, if UTF-8 characters (such as emojis) are used in the page.
See TemplateMgr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidPrints a debug statement if debugging is turned on for this page.final voidfinal voiddbg(boolean val) voidvoidrender(OutputStream out) abstract voidrender(PrintWriter out) voidvoidsetConnection(Connection con) voidsetContext(Map m) voidsetSourcePath(File templateFile)
-
Field Details
-
PACKAGE_NAME
-
DEFAULT_ENCODING
-
log
-
out
-
templateFile
-
con
-
context
-
-
Constructor Details
-
TemplatePage
public TemplatePage()
-
-
Method Details
-
setSourcePath
-
getSourcePath
-
setConnection
-
setContext
-
render
-
render
-
render
- Throws:
Exception
-
render
- Throws:
Exception
-
dbg
-
bug
Prints a debug statement if debugging is turned on for this page.Typically the implicit page printwriter (the
outvariable) will be passed to this method and debug statements will be printed at the point where they are lexically invoked at the page.- Throws:
IOException
-
bug
- Throws:
IOException
-