com.atlassian.confluence.pages.templates
Class XhtmlTemplateHandler
java.lang.Object
com.atlassian.confluence.pages.templates.XhtmlTemplateHandler
- All Implemented Interfaces:
- TemplateHandler
public class XhtmlTemplateHandler
- extends java.lang.Object
- implements TemplateHandler
Processes XHTML templates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XhtmlTemplateHandler
public XhtmlTemplateHandler(@Qualifier(value="xmlFragmentOutputFactory")
XmlOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
FormatConverter formatConverter,
javax.xml.stream.XMLEventFactory xmlEventFactory,
TemplateI18nHandler templateI18nHandler)
getTemplateVariables
public java.util.List<Variable> getTemplateVariables(PageTemplate template)
throws XhtmlException
- Specified by:
getTemplateVariables
in interface TemplateHandler
- Throws:
XhtmlException
insertVariables
public java.lang.String insertVariables(java.io.Reader templateXml,
java.util.List<? extends Variable> variables)
- Description copied from interface:
TemplateHandler
- Insert specified variables into the template XML before returning it. If an <at:var> is encountered in the XML
that doesn't have a value specified, it will be replaced with empty string.
- Specified by:
insertVariables
in interface TemplateHandler
- Parameters:
templateXml
- template XMLvariables
- the template variables
- Returns:
- the updated template XML with variables replaced with actual values
generateEditorFormat
public java.lang.String generateEditorFormat(PageTemplate template,
java.util.List<? extends Variable> variables,
java.lang.String spaceKey)
throws XhtmlException
- Specified by:
generateEditorFormat
in interface TemplateHandler
- Throws:
XhtmlException
getRenderContext
public PageContext getRenderContext(java.lang.String spaceKey)
Copyright © 2003-2014 Atlassian. All Rights Reserved.