Class WebTemplateInitialFunction
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows>
-
- net.officefloor.web.template.section.WebTemplateInitialFunction
-
- All Implemented Interfaces:
ManagedFunction<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows>
,ManagedFunctionFactory<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows>
public class WebTemplateInitialFunction extends StaticManagedFunction<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows>
InitialManagedFunction
to ensure appropriate conditions for rendering theParsedTemplate
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebTemplateInitialFunction.Flows
Keys for theWebTemplateInitialFunction
flows.static class
WebTemplateInitialFunction.WebTemplateInitialDependencies
Keys for theWebTemplateInitialFunction
dependencies.
-
Constructor Summary
Constructors Constructor Description WebTemplateInitialFunction(boolean isRequireSecure, java.lang.String contentType, java.nio.charset.Charset charset, HttpInputPath inputPath, int terminatingPathCharacter)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ManagedFunctionContext<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows> context)
Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Constructor Detail
-
WebTemplateInitialFunction
public WebTemplateInitialFunction(boolean isRequireSecure, java.lang.String contentType, java.nio.charset.Charset charset, HttpInputPath inputPath, int terminatingPathCharacter)
Initiate.- Parameters:
isRequireSecure
- Indicates if a secureServerHttpConnection
is required.contentType
- Content-type for theParsedTemplate
. May benull
.charset
-Charset
forParsedTemplate
.inputPath
-HttpInputPath
for theWebTemplate
.terminatingPathCharacter
-Character
to use to terminate the path.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<WebTemplateInitialFunction.WebTemplateInitialDependencies,WebTemplateInitialFunction.Flows> context) throws java.io.IOException
Description copied from interface:ManagedFunction
Executes the function.- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.io.IOException
-
-