org.silvermoon.moonglow.format
Class VelocityFormatter

java.lang.Object
  |
  +--org.silvermoon.moonglow.format.VelocityFormatter
All Implemented Interfaces:
Formatter

public class VelocityFormatter
extends java.lang.Object
implements Formatter

The basic Formatter implementation. This uses a Velocity template specified by the 'type' argument to format() to produce the formatted text string


Constructor Summary
VelocityFormatter()
           
 
Method Summary
 java.lang.String format(Response response, java.lang.String type)
          Perform the format
static void initVelocity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityFormatter

public VelocityFormatter()
Method Detail

initVelocity

public static void initVelocity()
                         throws java.lang.Exception
java.lang.Exception

format

public java.lang.String format(Response response,
                               java.lang.String type)
                        throws FormatException
Description copied from interface: Formatter
Perform the format

Specified by:
format in interface Formatter
FormatException