Uses of Interface
org.webmacro.Template

Packages that use Template
org.webmacro   
org.webmacro.directive   
org.webmacro.engine   
org.webmacro.resource What's in this directory: -- Classes that relate to resources made available in the WebMacro system. 
org.webmacro.servlet   
org.webmacro.util   
 

Uses of Template in org.webmacro
 

Methods in org.webmacro that return Template
 Template WM.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
 Template WebMacro.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
 

Uses of Template in org.webmacro.directive
 

Methods in org.webmacro.directive that return Template
protected  Template IncludeDirective.getTemplate(Broker b, java.lang.String name)
          get a Template via the "template" provider known by the specified broker
 

Uses of Template in org.webmacro.engine
 

Classes in org.webmacro.engine that implement Template
 class FileTemplate
          FileTemplate objects read their template data from a text file.
 class StreamTemplate
          StreamTempaltes are constructed with a stream from which they read their data.
 class StringTemplate
          StringTemplate objects read their template data from a string.
 class WMTemplate
          Template objects represent the user defined layout into which the webmacro package will substitute values.
 

Methods in org.webmacro.engine with parameters of type Template
 void BuildContext.mergeConstants(Template t)
          Add #macros and #params from the specified Template to this bulid context
 

Uses of Template in org.webmacro.resource
 

Classes in org.webmacro.resource that implement Template
 class URLTemplate
          FileTemplate objects read their template data from a text file.
 

Methods in org.webmacro.resource that return Template
 Template FileTemplateLoader.load(java.lang.String query, CacheElement ce)
          Tries to load a template by interpreting query as a path relative to the path set by setPath.
 Template TemplatePathTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template BrokerTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template ClassPathTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template TemplateLoaderHelper.load(java.io.File file, CacheElement ce)
          Load a template from a file.
 Template TemplateLoaderHelper.load(java.net.URL url, CacheElement ce)
          Load a template from an url.
 Template ServletContextTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template TemplateLoader.load(java.lang.String query, CacheElement ce)
          Try to load a template.
 

Uses of Template in org.webmacro.servlet
 

Methods in org.webmacro.servlet that return Template
 Template Handler.accept(WebContext contextData)
          This is the primary method you override to create a new handler.
protected  Template WMServlet.error(WebContext context, java.lang.String error)
          Create an error template using the built in error handler.
 Template WMServlet.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
abstract  Template WMServlet.handle(WebContext context)
          This method is called to handle the processing of a request.
 Template WMServlet.getErrorTemplate()
          Gets a template for displaying an error message.
 

Methods in org.webmacro.servlet with parameters of type Template
protected  void WMServlet.execute(Template tmpl, WebContext c)
          This method takes a populated context and a template and writes out the interpreted template to the context's output stream.
 

Constructors in org.webmacro.servlet with parameters of type Template
TemplateTool.MacroTemplate(Context c, Template t)
          Constructor
 

Uses of Template in org.webmacro.util
 

Methods in org.webmacro.util that return Template
 Template WMEval.init(java.io.InputStream unparsedRule)
          Initializes WMEval so that it can perform rule evaluation on multiple contexts.
 Template WMEval.parseLocalTemplate(java.lang.String templateName)
          A convenience method to find and parse a template in the local template path.
 Template WMEval.getRule()
          Obtain the parsed rule possibly for reuse in another run.
 

Methods in org.webmacro.util with parameters of type Template
 void WMEval.setParsedTemplate(Template parsedTemplate)
          Supplies the parsed rule directly.
 void WMEval.eval(Context context, Template rule, java.io.OutputStream out, java.lang.String encoding)
          Evaluate the supplied context and template to the provided output.
 java.lang.String WMEval.eval(Context context, Template rule)
          Evaluate the supplied context and template and return the result as a as a string.