org.apache.anteater.test.handlers
Interface ContentHandler

All Known Implementing Classes:
JellyHandler, SendResponse

public interface ContentHandler

ContentHandlers are adapter classes that convert from an Object (usually Ant's 'Task' or 'Type') to a String. This is used to convert Task types, like <jelly>, into strings, usually the result of running the task.

Version:
$Revision: 1.2 $ $Date: 2002/10/06 08:18:12 $
Author:
Jeff Turner

Method Summary
 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.
 

Method Detail

getHandledTypes

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


getContent

public String getContent(Object obj)
                  throws Exception
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.

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


Ant Functional Tester -- see Project home page for details