public class XhtmlTemplateHandler extends Object implements TemplateHandler
Constructor and Description |
---|
XhtmlTemplateHandler(XmlOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
FormatConverter formatConverter,
XMLEventFactory xmlEventFactory,
TemplateI18nHandler templateI18nHandler) |
Modifier and Type | Method and Description |
---|---|
String |
generateEditorFormat(PageTemplate template,
List<? extends Variable> variables,
String spaceKey) |
PageContext |
getRenderContext(String spaceKey) |
List<Variable> |
getTemplateVariables(PageTemplate template) |
String |
insertVariables(Reader templateXml,
List<? extends Variable> variables)
Insert specified variables into the template XML before returning it.
|
public XhtmlTemplateHandler(@Qualifier(value="xmlFragmentOutputFactory") XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, FormatConverter formatConverter, XMLEventFactory xmlEventFactory, TemplateI18nHandler templateI18nHandler)
public List<Variable> getTemplateVariables(PageTemplate template) throws XhtmlException
getTemplateVariables
in interface TemplateHandler
XhtmlException
public String insertVariables(Reader templateXml, List<? extends Variable> variables)
TemplateHandler
insertVariables
in interface TemplateHandler
templateXml
- template XMLvariables
- the template variablespublic String generateEditorFormat(PageTemplate template, List<? extends Variable> variables, String spaceKey) throws XhtmlException
generateEditorFormat
in interface TemplateHandler
XhtmlException
public PageContext getRenderContext(String spaceKey)
Copyright © 2003–2016 Atlassian. All rights reserved.