Class MarkupWriterFactoryImpl
java.lang.Object
org.apache.tapestry5.internal.services.MarkupWriterFactoryImpl
- All Implemented Interfaces:
MarkupWriterFactory
-
Constructor Summary
ConstructorsConstructorDescriptionMarkupWriterFactoryImpl
(PageContentTypeAnalyzer pageContentTypeAnalyzer, RequestPageCache cache, ComponentTemplateSource templateSource, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer) -
Method Summary
Modifier and TypeMethodDescriptionnewMarkupWriter
(String pageName) Obtains a markup writer that will render the content for the provided logical page name.newMarkupWriter
(ContentType contentType) Creates a markup writer for a particular content type.newMarkupWriter
(Page page) Obtains a markup writer that will render the content for the provided page.newPartialMarkupWriter
(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).newPartialMarkupWriter
(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).newPartialMarkupWriter
(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 Details
-
MarkupWriterFactoryImpl
public MarkupWriterFactoryImpl(PageContentTypeAnalyzer pageContentTypeAnalyzer, RequestPageCache cache, ComponentTemplateSource templateSource, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer)
-
-
Method Details
-
newMarkupWriter
Description copied from interface:MarkupWriterFactory
Creates a markup writer for a particular content type.- Specified by:
newMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
contentType
- type of content generated by the markup write; used to control the type ofMarkupModel
used with theDocument
the backs the markup writer.
-
newPartialMarkupWriter
Description copied from interface:MarkupWriterFactory
Creates a markup writer for a particular content type, configured for partial page rendering (i.e., for a response to an Ajax request).- Specified by:
newPartialMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
contentType
- type of content generated by the markup write; used to control the type ofMarkupModel
used with theDocument
the backs the markup writer.
-
newMarkupWriter
Description copied from interface:MarkupWriterFactory
Obtains a markup writer that will render the content for the provided logical page name. Convenience method forMarkupWriterFactory.newMarkupWriter(Page)
- Specified by:
newMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
pageName
- logical page name- Returns:
- writer configured for the page
-
newMarkupWriter
Description copied from interface:MarkupWriterFactory
Obtains 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:
newMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
page
- the page to obtain a writer for- Returns:
- writer configured for the page
-
newPartialMarkupWriter
Description copied from interface:MarkupWriterFactory
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). Takes into account all necessary information such as the page's content type and doctype.- Specified by:
newPartialMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
page
- the page to obtain a writer for- Returns:
- writer configured for the page
-
newPartialMarkupWriter
Description copied from interface:MarkupWriterFactory
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). Convenience method forMarkupWriterFactory.newPartialMarkupWriter(Page)
- Specified by:
newPartialMarkupWriter
in interfaceMarkupWriterFactory
- Parameters:
pageName
- logical page name- Returns:
- writer configured for the page
-