Class Template
- java.lang.Object
-
- net.officefloor.tutorial.teamhttpserver.Template
-
- All Implemented Interfaces:
java.io.Serializable
@HttpSessionStateful public class Template extends java.lang.Object implements java.io.Serializable
Logic for the template.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Template.PageFlows
-
Constructor Summary
Constructors Constructor Description Template()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LetterEncryption
encrypt(EncryptLetter request, Template.PageFlows flows)
java.lang.String
getCacheThreadName()
java.lang.String
getDatabaseThreadName()
LetterEncryption
getTemplate()
Template
getThreadNames()
void
handleException(java.lang.Exception ex)
LetterEncryption
retrieveFromDatabase(char letter, java.sql.Connection connection)
void
setDisplayCode(LetterEncryption encryption)
-
-
-
Method Detail
-
getCacheThreadName
public java.lang.String getCacheThreadName()
-
getDatabaseThreadName
public java.lang.String getDatabaseThreadName()
-
getTemplate
public LetterEncryption getTemplate()
-
getThreadNames
public Template getThreadNames()
-
encrypt
@Next("setDisplayCode") public LetterEncryption encrypt(EncryptLetter request, Template.PageFlows flows)
-
setDisplayCode
public void setDisplayCode(@Parameter LetterEncryption encryption)
-
retrieveFromDatabase
@Next("setDisplayCode") public LetterEncryption retrieveFromDatabase(@Parameter char letter, java.sql.Connection connection) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
handleException
public void handleException(@Parameter java.lang.Exception ex) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-