org.apache.tapestry.markup
Interface MarkupWriterSource

All Known Implementing Classes:
MarkupWriterSourceImpl

public interface MarkupWriterSource

Service interface for tapestry.markup.MarkupWriterSource service. A factory service that creates new instances of IMarkupWriter, configured for different content types;

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 IJSONWriter newJSONWriter(PrintWriter writer, ContentType contentType)
          Creates and returns a new instance of IJSONWriter.
 IMarkupWriter newMarkupWriter(PrintWriter writer, ContentType contentType)
          Creates and returns a new instance of IMarkupWriter.
 

Method Detail

newMarkupWriter

IMarkupWriter newMarkupWriter(PrintWriter writer,
                              ContentType contentType)
Creates and returns a new instance of IMarkupWriter. The content type is used to find the proper implemenation. Any additional content type data (after a ';') is ignored.

Parameters:
writer - The PrintWriter to which the markup writer should send output.
contentType - Used to locate the correct markup writer implementation (used to select a MarkupFilter.
Returns:
The configured markup writer instance.

newJSONWriter

IJSONWriter newJSONWriter(PrintWriter writer,
                          ContentType contentType)
Creates and returns a new instance of IJSONWriter. The content type is used to find the proper implementation. Any additional content type data (after a ';') is ignored.

Parameters:
writer - The PrintWriter to which the markup writer should send output.
contentType - Used to locate the correct markup writer implementation (used to select a MarkupFilter.
Returns:
The configured json writer instance.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.