public class MarkupWriterFactoryImpl extends Object implements MarkupWriterFactory
Constructor and Description |
---|
MarkupWriterFactoryImpl(PageContentTypeAnalyzer pageContentTypeAnalyzer,
RequestPageCache cache,
ComponentTemplateSource templateSource,
ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer) |
Modifier and Type | Method and Description |
---|---|
MarkupWriter |
newMarkupWriter(ContentType contentType)
Creates a markup writer for a particular content type.
|
MarkupWriter |
newMarkupWriter(Page page)
Obtains a markup writer that will render the content for the provided page.
|
MarkupWriter |
newMarkupWriter(String pageName)
Obtains a markup writer that will render the content for the provided logical page name.
|
MarkupWriter |
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).
|
MarkupWriter |
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).
|
MarkupWriter |
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).
|
public MarkupWriterFactoryImpl(PageContentTypeAnalyzer pageContentTypeAnalyzer, RequestPageCache cache, ComponentTemplateSource templateSource, ComponentRequestSelectorAnalyzer componentRequestSelectorAnalyzer)
public MarkupWriter newMarkupWriter(ContentType contentType)
MarkupWriterFactory
newMarkupWriter
in interface MarkupWriterFactory
contentType
- type of content generated by the markup write; used to control the type of MarkupModel
used with the Document
the backs the markup writer.public MarkupWriter newPartialMarkupWriter(ContentType contentType)
MarkupWriterFactory
newPartialMarkupWriter
in interface MarkupWriterFactory
contentType
- type of content generated by the markup write; used to control the type of MarkupModel
used with the Document
the backs the markup writer.public MarkupWriter newMarkupWriter(String pageName)
MarkupWriterFactory
MarkupWriterFactory.newMarkupWriter(Page)
newMarkupWriter
in interface MarkupWriterFactory
pageName
- logical page namepublic MarkupWriter newMarkupWriter(Page page)
MarkupWriterFactory
newMarkupWriter
in interface MarkupWriterFactory
page
- the page to obtain a writer forpublic MarkupWriter newPartialMarkupWriter(Page page)
MarkupWriterFactory
newPartialMarkupWriter
in interface MarkupWriterFactory
page
- the page to obtain a writer forpublic MarkupWriter newPartialMarkupWriter(String pageName)
MarkupWriterFactory
MarkupWriterFactory.newPartialMarkupWriter(Page)
newPartialMarkupWriter
in interface MarkupWriterFactory
pageName
- logical page name${project.version} - Copyright © 2003-2015 The Apache Software Foundation.