org.springframework.extensions.webscripts
Class ResourceFreemarkerTagDirective

java.lang.Object
  extended by org.springframework.extensions.webscripts.FreemarkerTagSupportDirective
      extended by org.springframework.extensions.webscripts.ResourceFreemarkerTagDirective
All Implemented Interfaces:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class ResourceFreemarkerTagDirective
extends FreemarkerTagSupportDirective

Outputs the requested url representation of a resource Named Resource Examples: <@res name="resourceName" /> <@res id=":///" /> <@res protocol="" endpoint="" object="" /> <@res name="resourceName" payload="metadata" /> <@res name="resourceName" payload="content" />

Author:
muzquiano

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
ResourceFreemarkerTagDirective(RenderContext context)
           
 
Method Summary
 void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
           
 
Methods inherited from class org.springframework.extensions.webscripts.FreemarkerTagSupportDirective
executeTag, executeTag, getStringParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFreemarkerTagDirective

public ResourceFreemarkerTagDirective(RenderContext context)
Method Detail

execute

public void execute(freemarker.core.Environment env,
                    Map params,
                    freemarker.template.TemplateModel[] loopVars,
                    freemarker.template.TemplateDirectiveBody body)
             throws freemarker.template.TemplateException,
                    IOException
Throws:
freemarker.template.TemplateException
IOException


Copyright © 2009 SpringSource, Inc. All Rights Reserved.