nl.pbemengine.engine.ng.base.webserver
Class TemplateResultAction

java.lang.Object
  extended by nl.pbemengine.engine.ng.base.webserver.TemplateResultAction
All Implemented Interfaces:
ResultAction

public class TemplateResultAction
extends java.lang.Object
implements ResultAction

Action result that renders the result of an action using FreeMarker templates

Author:
Jeroen Steenbeeke

Constructor Summary
TemplateResultAction(freemarker.template.Configuration config, java.lang.String templateName, java.lang.String mimeType)
           
 
Method Summary
 Content processResult(Action action)
          Takes an action object and generate a Content object for it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateResultAction

public TemplateResultAction(freemarker.template.Configuration config,
                            java.lang.String templateName,
                            java.lang.String mimeType)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

processResult

public Content processResult(Action action)
Description copied from interface: ResultAction
Takes an action object and generate a Content object for it

Specified by:
processResult in interface ResultAction
Parameters:
action - The action that indicated this result should be invoked
Returns:
A Content object


Copyright © 2008. All Rights Reserved.