Class TemplateLogic
- java.lang.Object
-
- net.officefloor.tutorial.interactivehttpserver.TemplateLogic
-
public class TemplateLogic extends java.lang.ObjectExample logic for the template.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateLogic.Issuestatic classTemplateLogic.Parameters
-
Constructor Summary
Constructors Constructor Description TemplateLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateLogic.ParametersgetTemplateData(TemplateLogic.Parameters submittedParameters)Obtains the bean for rendering the template.voidhandleSubmission(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.Parametersthat was constructed forhandleSubmission(Parameters). This allows the page to be rendered with the values provided by the client.- Returns:
TemplateLogic.Parametersfor rendering to page.
-
handleSubmission
public void handleSubmission(TemplateLogic.Parameters submittedParameters)
Reflectively invoked to handle form submission.- Parameters:
submittedParameters-TemplateLogic.Parameterswhich is dependency injected. It is constructed via its default constructor and has the HTTP parameters values loaded by corresponding names.
-
-