org.melati.template.velocity
Class VelocityTemplateContext

java.lang.Object
  extended by org.melati.template.velocity.VelocityTemplateContext
All Implemented Interfaces:
TemplateContext
Direct Known Subclasses:
VelocityServletTemplateContext

public class VelocityTemplateContext
extends java.lang.Object
implements TemplateContext

Since:
14 Apr 2008
Author:
timp

Field Summary
 org.apache.velocity.VelocityContext velContext
          The webcontext.
 
Constructor Summary
VelocityTemplateContext(org.apache.velocity.VelocityContext vc)
          Constructor.
 
Method Summary
 java.lang.Object get(java.lang.String s)
          Get an object from the Context by key.
 java.lang.Object getContext()
          Return the Context itself, as an Object.
 void put(java.lang.String s, java.lang.Object o)
          Put an object into the Context with a key.
 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
 

Field Detail

velContext

public org.apache.velocity.VelocityContext velContext
The webcontext.

Constructor Detail

VelocityTemplateContext

public VelocityTemplateContext(org.apache.velocity.VelocityContext vc)
Constructor.

Parameters:
vc - context
Method Detail

put

public void put(java.lang.String s,
                java.lang.Object o)
Put an object into the Context with a key.

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

get

public java.lang.Object get(java.lang.String s)
Get an object from the Context by key.

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

getContext

public java.lang.Object getContext()
Return the Context itself, as an Object.

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-2008 PanEris. All Rights Reserved.