|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--freemarker.template.Configuration
|
+--org.niggle.templates.freemarkerimpl.FreemarkerPageFactory
A concrete PageFactory type that vends Page objects that represent Freemarker templates.
| Field Summary | |
protected java.io.File |
defaultDirectory
|
| Constructor Summary | |
FreemarkerPageFactory()
|
|
| Method Summary | |
Page |
getPage(java.lang.String name,
java.util.Locale locale)
Returns a Page. |
void |
setConfig(NiggleConfig config)
pass a copy of the NiggleConfig object for setup info. |
void |
setDefaultPath(java.lang.String path)
|
| Methods inherited from class freemarker.template.Configuration |
get, getClassicCompatibility, getDecimalSeparator, getDefaultConfig, getDefaultEncoding, getEncoding, getLocale, getStrictSyntaxMode, getTemplate, getTemplate, getTemplate, getTemplate, getTemplate, LoadBuiltInEncodingMap, put, put, putAll, setClassForTemplateLoading, setClassicCompatibility, setDefaultConfig, setDefaultEncoding, setDirectoryForTemplateLoading, setEncoding, setLocale, setServletContextForTemplateLoading, setStrictSyntaxMode, setTemplateExceptionHandler, setTemplateLoader, setTemplateUpdateDelay |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.File defaultDirectory
| Constructor Detail |
public FreemarkerPageFactory()
| Method Detail |
public void setDefaultPath(java.lang.String path)
throws java.io.IOException
setDefaultPath in interface PageFactoryjava.io.IOException
public Page getPage(java.lang.String name,
java.util.Locale locale)
throws java.io.IOException
PageFactory
getPage in interface PageFactoryname - a string that somehow identifies the page. May or
may not be related to a file system name.locale - the place for which the page is intended.
java.io.IOException - thrown if a necessary underlying resource is
unavailable.
public void setConfig(NiggleConfig config)
throws javax.servlet.ServletException
PageFactory
setConfig in interface PageFactoryjavax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||