org.apache.anteater.test.handlers
Class JellyHandler

java.lang.Object
  |
  +--org.apache.anteater.test.handlers.JellyHandler
All Implemented Interfaces:
ContentHandler

public class JellyHandler
extends Object
implements ContentHandler

A ContentHandler that processes JellyTask objects, and returns a String containing the result of executing the task.

Version:
$Revision: 1.2 $ $Date: 2002/10/04 14:25:25 $
Author:
Jeff Turner

Constructor Summary
JellyHandler()
           
 
Method Summary
protected  org.apache.commons.jelly.XMLOutput createXMLOutput(Writer writer)
           
 String getContent(Object obj)
          Generate text content as a result of processing an object.
 String[] getHandledTypes()
          Gets an array of names of classes that the implementing ContentHandler can process.
protected  void log(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JellyHandler

public JellyHandler()
Method Detail

getHandledTypes

public String[] getHandledTypes()
Description copied from interface: ContentHandler
Gets an array of names of classes that the implementing ContentHandler can process.

Specified by:
getHandledTypes in interface ContentHandler

getContent

public String getContent(Object obj)
                  throws Exception
Description copied from interface: ContentHandler
Generate text content as a result of processing an object. Usually the object is an Ant task, and 'processing' it means executing it and extracting it's output.

Specified by:
getContent in interface ContentHandler
Parameters:
obj - An object that the ContentHandler implementation knows how to process. Typically an Ant task.
Returns:
A String representation of the result of processing the object. Can be null, which represents 'no content'.
Exception

createXMLOutput

protected org.apache.commons.jelly.XMLOutput createXMLOutput(Writer writer)
                                                      throws Exception
Exception

log

protected void log(String msg)


Ant Functional Tester -- see Project home page for details