net.officefloor.tutorial.pageflowhttpserver
Class TemplateLogic

java.lang.Object
  extended by net.officefloor.tutorial.pageflowhttpserver.TemplateLogic

public class TemplateLogic
extends Object

Example logic for the template.

Author:
Daniel Sagenschneider

Nested Class Summary
static class TemplateLogic.Issue
           
static class TemplateLogic.Parameters
           
 
Constructor Summary
TemplateLogic()
           
 
Method Summary
 TemplateLogic.Parameters getTemplateData(TemplateLogic.Parameters submittedParameters)
          Obtains the bean for rendering the template.
 void handleSubmission(TemplateLogic.Parameters submittedParameters)
          Reflectively invoked to handle form submission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateLogic

public TemplateLogic()
Method Detail

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.