org.melati.template.webmacro
Class WebmacroTemplateContext

Package class diagram package WebmacroTemplateContext
java.lang.Object
  extended by org.melati.template.webmacro.WebmacroTemplateContext
All Implemented Interfaces:
TemplateContext
Direct Known Subclasses:
WebmacroServletTemplateContext

public class WebmacroTemplateContext
extends Object
implements TemplateContext

Implements a template context for Melati / Webmacro without a Servlet.


Constructor Summary
WebmacroTemplateContext(org.webmacro.Context c)
          Constructor.
 
Method Summary
 Object get(String s)
          Get a value by key.
 Object getContext()
          Get the context itself.
 void put(String s, Object o)
          Set a value in the Context.
 void setPassbackExceptionHandling()
          Set the current exception handling style.
 void setPropagateExceptionHandling()
          Set the current exception handling style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebmacroTemplateContext

public WebmacroTemplateContext(org.webmacro.Context c)
Constructor.

Parameters:
c - a Context to use to evaluate against
Method Detail

put

public void put(String s,
                Object o)
Set a value in the Context.

Specified by:
put in interface TemplateContext
Parameters:
s - key
o - value
See Also:
TemplateContext.put(java.lang.String, java.lang.Object)

get

public Object get(String s)
Get a value by key.

Specified by:
get in interface TemplateContext
Parameters:
s - key
Returns:
value
See Also:
TemplateContext.get(java.lang.String)

getContext

public Object getContext()
Get the context itself.

Specified by:
getContext in interface TemplateContext
Returns:
the context
See Also:
TemplateContext.getContext()

setPassbackExceptionHandling

public void setPassbackExceptionHandling()
Set the current exception handling style.

Specified by:
setPassbackExceptionHandling in interface TemplateContext
See Also:
TemplateContext.setPassbackExceptionHandling()

setPropagateExceptionHandling

public void setPropagateExceptionHandling()
Set the current exception handling style.

Specified by:
setPropagateExceptionHandling in interface TemplateContext
See Also:
TemplateContext.setPropagateExceptionHandling()


Copyright © 2000-2010 PanEris. All Rights Reserved.