org.apache.tapestry.markup
Class MarkupWriterSourceImpl
java.lang.Object
org.apache.tapestry.markup.MarkupWriterSourceImpl
- All Implemented Interfaces:
- MarkupWriterSource
public class MarkupWriterSourceImpl
- extends Object
- implements MarkupWriterSource
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkupWriterSourceImpl
public MarkupWriterSourceImpl()
setContributions
public void setContributions(Map contributions)
newMarkupWriter
public IMarkupWriter newMarkupWriter(PrintWriter writer,
ContentType contentType)
- Description copied from interface:
MarkupWriterSource
- 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.
- Specified by:
newMarkupWriter
in interface MarkupWriterSource
- 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
public IJSONWriter newJSONWriter(PrintWriter writer,
ContentType contentType)
- Description copied from interface:
MarkupWriterSource
- 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.
- Specified by:
newJSONWriter
in interface MarkupWriterSource
- 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.
setLog
public void setLog(Log log)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.