Class WebTemplateFunction
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<Indexed,None>
-
- net.officefloor.web.template.section.WebTemplateFunction
-
- All Implemented Interfaces:
ManagedFunction<Indexed,None>,ManagedFunctionFactory<Indexed,None>
public class WebTemplateFunction extends StaticManagedFunction<Indexed,None>
ManagedFunctionto write theParsedTemplateSection.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description WebTemplateFunction(WebTemplateWriter[] contentWriters, boolean isBean, java.nio.charset.Charset charset)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ManagedFunctionContext<Indexed,None> context)Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Constructor Detail
-
WebTemplateFunction
public WebTemplateFunction(WebTemplateWriter[] contentWriters, boolean isBean, java.nio.charset.Charset charset)
Initiate.- Parameters:
contentWriters-WebTemplateWriterinstances to write the content.isBean- Flag indicating if a bean.charset- DefaultCharsetfor the template.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<Indexed,None> context) throws java.io.IOException
Description copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.io.IOException
-
-