Class TemplateLogic
- java.lang.Object
-
- net.officefloor.tutorial.interactivehttpserver.TemplateLogic
-
public class TemplateLogic extends java.lang.Object
Example logic for the template.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplateLogic.Issue
static class
TemplateLogic.Parameters
-
Constructor Summary
Constructors Constructor Description TemplateLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateLogic.Parameters
getTemplateData(TemplateLogic.Parameters submittedParameters)
Obtains the bean for rendering the template.void
handleSubmission(TemplateLogic.Parameters submittedParameters)
Reflectively invoked to handle form submission.
-
-
-
Method Detail
-
getTemplateData
public TemplateLogic.Parameters getTemplateData(TemplateLogic.Parameters submittedParameters)
Obtains the bean for rendering the template.- Parameters:
submittedParameters
- SameTemplateLogic.Parameters
that was constructed forhandleSubmission(Parameters)
. This allows the page to be rendered with the values provided by the client.- Returns:
TemplateLogic.Parameters
for rendering to page.
-
handleSubmission
public void handleSubmission(TemplateLogic.Parameters submittedParameters)
Reflectively invoked to handle form submission.- Parameters:
submittedParameters
-TemplateLogic.Parameters
which is dependency injected. It is constructed via its default constructor and has the HTTP parameters values loaded by corresponding names.
-
-