org.melati.template.velocity
Class VelocityTemplateContext

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

public class VelocityTemplateContext
extends 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
 Object get(String s)
          Get an object from the Context by key.
 Object getContext()
          Return the Context itself, as an Object.
 void put(String s, 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(String s,
                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 Object get(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 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-2010 PanEris. All Rights Reserved.