toolbox.web.template
Class GetToken

Package class diagram package GetToken
java.lang.Object
  extended by toolbox.web.template.GetToken
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class GetToken
extends java.lang.Object
implements freemarker.template.TemplateMethodModel

Template helper to generate unique tokens for use in server side tests to ensure that duplicate form submissions do not occur.


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
GetToken()
          Default constructor
 
Method Summary
 java.lang.Object exec(java.util.List args)
          Generate the unique token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetToken

public GetToken()
Default constructor

Method Detail

exec

public java.lang.Object exec(java.util.List args)
                      throws freemarker.template.TemplateModelException
Generate the unique token.

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
args - List containing arguments. Empty in this instance.
Returns:
String instance containing unique token.
Throws:
freemarker.template.TemplateModelException