net.officefloor.tutorial.teamhttpserver
Class Template

java.lang.Object
  extended by net.officefloor.tutorial.teamhttpserver.Template
All Implemented Interfaces:
Serializable

@HttpSessionStateful
public class Template
extends Object
implements Serializable

Logic for the template.

Author:
Daniel Sagenschneider
See Also:
Serialized Form

Nested Class Summary
static interface Template.PageFlows
           
 
Constructor Summary
Template()
           
 
Method Summary
 LetterEncryption encrypt(EncryptLetter request, Template.PageFlows flows)
           
 String getCacheThreadName()
           
 String getDatabaseThreadName()
           
 LetterEncryption getTemplate()
           
 Template getThreadNames()
           
 void handleException(SQLException ex)
           
 LetterEncryption retrieveFromDatabase(char letter, DataSource dataSource)
           
 void setDisplayCode(LetterEncryption encryption)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template()
Method Detail

getTemplate

public LetterEncryption getTemplate()

getThreadNames

public Template getThreadNames()

getCacheThreadName

public String getCacheThreadName()

getDatabaseThreadName

public String getDatabaseThreadName()

encrypt

@NextTask(value="setDisplayCode")
public LetterEncryption encrypt(EncryptLetter request,
                                              Template.PageFlows flows)

setDisplayCode

public void setDisplayCode(@Parameter
                           LetterEncryption encryption)

retrieveFromDatabase

@NextTask(value="setDisplayCode")
public LetterEncryption retrieveFromDatabase(@Parameter
                                                           char letter,
                                                           DataSource dataSource)
                                      throws SQLException
Throws:
SQLException

handleException

public void handleException(@Parameter
                            SQLException ex)
                     throws Throwable
Throws:
Throwable


Copyright © 2005-2013. All Rights Reserved.