Class FreemarkerAppHandler
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.FreemarkerAppHandler
-
@Component public class FreemarkerAppHandler extends java.lang.Object
Used for cases where plain web page should be presented to the user, based on freemarker template.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description FreemarkerAppHandler(UnityServerConfiguration serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printAppErrorPage(java.io.Writer out, java.lang.String subsystem, java.lang.String genericIntro, java.lang.String error, java.lang.String cause)
void
printGenericPage(java.io.Writer out, java.lang.String template, java.util.Map<java.lang.String,java.lang.String> datamodel)
-
-
-
Constructor Detail
-
FreemarkerAppHandler
@Autowired public FreemarkerAppHandler(UnityServerConfiguration serverConfig)
-
-
Method Detail
-
printAppErrorPage
public void printAppErrorPage(java.io.Writer out, java.lang.String subsystem, java.lang.String genericIntro, java.lang.String error, java.lang.String cause) throws java.io.IOException
- Throws:
java.io.IOException
-
printGenericPage
public void printGenericPage(java.io.Writer out, java.lang.String template, java.util.Map<java.lang.String,java.lang.String> datamodel) throws java.io.IOException
- Throws:
java.io.IOException
-
-