net.officefloor.tutorial.pageflowhttpserver
Class TemplateLogic
java.lang.Object
net.officefloor.tutorial.pageflowhttpserver.TemplateLogic
public class TemplateLogic
- extends Object
Example logic for the template.
- Author:
- Daniel Sagenschneider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateLogic
public TemplateLogic()
getTemplateData
public TemplateLogic.Parameters getTemplateData(TemplateLogic.Parameters submittedParameters)
- Obtains the bean for rendering the template.
- Parameters:
submittedParameters - Same TemplateLogic.Parameters that was constructed for
#handleSubmission(Parmeters). 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.
Copyright © 2005-2012. All Rights Reserved.