Class TemplateLogic
- java.lang.Object
-
- net.officefloor.tutorial.sessionhttpserver.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.Poststatic classTemplateLogic.Posts
-
Constructor Summary
Constructors Constructor Description TemplateLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateLogic.PostsgetTemplateData(TemplateLogic.Posts posts)Provides values from the HTTP session.voidpost(TemplateLogic.Post post, TemplateLogic.Posts posts)Handles the post form submission.
-
-
-
Method Detail
-
getTemplateData
public TemplateLogic.Posts getTemplateData(TemplateLogic.Posts posts)
Provides values from the HTTP session.- Parameters:
posts-TemplateLogic.Postsbeing the session bound object.- Returns:
TemplateLogic.Poststo contain values to render to page.
-
post
public void post(TemplateLogic.Post post, TemplateLogic.Posts posts)
Handles the post form submission.- Parameters:
post-TemplateLogic.Postthat is dependency injected with HTTP parameters loaded onto it.posts-TemplateLogic.Poststhat is dependency injected from the HTTP session.
-
-