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