Class MarkupWriterFactoryImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.MarkupWriterFactoryImpl
-
- All Implemented Interfaces:
MarkupWriterFactory
public class MarkupWriterFactoryImpl extends java.lang.Object implements MarkupWriterFactory
-
-
Constructor Summary
Constructors Constructor Description MarkupWriterFactoryImpl(PageContentTypeAnalyzer pageContentTypeAnalyzer, RequestPageCache cache, ComponentTemplateSource templateSource, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkupWriternewMarkupWriter(java.lang.String pageName)Obtains a markup writer that will render the content for the provided logical page name.MarkupWriternewMarkupWriter(ContentType contentType)Creates a markup writer for a particular content type.MarkupWriternewMarkupWriter(Page page)Obtains a markup writer that will render the content for the provided page.MarkupWriternewPartialMarkupWriter(java.lang.String pageName)Obtains a markup writer that will render the content for the provided logical page name, configured for partial page rendering (i.e., for a response to an Ajax request).MarkupWriternewPartialMarkupWriter(ContentType contentType)Creates a markup writer for a particular content type, configured for partial page rendering (i.e., for a response to an Ajax request).MarkupWriternewPartialMarkupWriter(Page page)Obtains a markup writer that will render the content for the provided page, configured for partial page rendering (i.e., for a response to an Ajax request).
-
-
-
Constructor Detail
-
MarkupWriterFactoryImpl
public MarkupWriterFactoryImpl(PageContentTypeAnalyzer pageContentTypeAnalyzer, RequestPageCache cache, ComponentTemplateSource templateSource, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer)
-
-
Method Detail
-
newMarkupWriter
public MarkupWriter newMarkupWriter(ContentType contentType)
Description copied from interface:MarkupWriterFactoryCreates a markup writer for a particular content type.- Specified by:
newMarkupWriterin interfaceMarkupWriterFactory- Parameters:
contentType- type of content generated by the markup write; used to control the type ofMarkupModelused with theDocumentthe backs the markup writer.
-
newPartialMarkupWriter
public MarkupWriter newPartialMarkupWriter(ContentType contentType)
Description copied from interface:MarkupWriterFactoryCreates a markup writer for a particular content type, configured for partial page rendering (i.e., for a response to an Ajax request).- Specified by:
newPartialMarkupWriterin interfaceMarkupWriterFactory- Parameters:
contentType- type of content generated by the markup write; used to control the type ofMarkupModelused with theDocumentthe backs the markup writer.
-
newMarkupWriter
public MarkupWriter newMarkupWriter(java.lang.String pageName)
Description copied from interface:MarkupWriterFactoryObtains a markup writer that will render the content for the provided logical page name. Convenience method forMarkupWriterFactory.newMarkupWriter(Page)- Specified by:
newMarkupWriterin interfaceMarkupWriterFactory- Parameters:
pageName- logical page name- Returns:
- writer configured for the page
-
newMarkupWriter
public MarkupWriter newMarkupWriter(Page page)
Description copied from interface:MarkupWriterFactoryObtains a markup writer that will render the content for the provided page. Takes into account all necessary information such as the page's content type and doctype.- Specified by:
newMarkupWriterin interfaceMarkupWriterFactory- Parameters:
page- the page to obtain a writer for- Returns:
- writer configured for the page
-
newPartialMarkupWriter
public MarkupWriter newPartialMarkupWriter(Page page)
Description copied from interface:MarkupWriterFactoryObtains a markup writer that will render the content for the provided page, configured for partial page rendering (i.e., for a response to an Ajax request). Takes into account all necessary information such as the page's content type and doctype.- Specified by:
newPartialMarkupWriterin interfaceMarkupWriterFactory- Parameters:
page- the page to obtain a writer for- Returns:
- writer configured for the page
-
newPartialMarkupWriter
public MarkupWriter newPartialMarkupWriter(java.lang.String pageName)
Description copied from interface:MarkupWriterFactoryObtains a markup writer that will render the content for the provided logical page name, configured for partial page rendering (i.e., for a response to an Ajax request). Convenience method forMarkupWriterFactory.newPartialMarkupWriter(Page)- Specified by:
newPartialMarkupWriterin interfaceMarkupWriterFactory- Parameters:
pageName- logical page name- Returns:
- writer configured for the page
-
-