com.atlassian.confluence.content.render.xhtml.migration
Class ErrorReportingV2Renderer
java.lang.Object
com.atlassian.confluence.content.render.xhtml.migration.ErrorReportingV2Renderer
- All Implemented Interfaces:
- com.atlassian.renderer.v2.MutableRenderer, com.atlassian.renderer.v2.Renderer
public class ErrorReportingV2Renderer
- extends java.lang.Object
- implements com.atlassian.renderer.v2.MutableRenderer
Extend the V2Render with a new method where a writeable List can be supplied to collect
any exceptions thrown during renderering. (Rendering will still complete, and the report will
be populated as a side effect.)
Method Summary |
java.lang.String |
getRendererType()
|
java.lang.String |
render(java.lang.String originalContent,
com.atlassian.renderer.RenderContext renderContext)
|
java.lang.String |
render(java.lang.String originalContent,
com.atlassian.renderer.RenderContext renderContext,
java.util.List<java.lang.RuntimeException> exceptions)
Render the supplied wiki content. |
java.lang.String |
renderAsText(java.lang.String originalContent,
com.atlassian.renderer.RenderContext context)
|
void |
setComponents(java.util.List components)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorReportingV2Renderer
public ErrorReportingV2Renderer(java.util.List<com.atlassian.renderer.v2.components.RendererComponent> components,
Marshaller<MacroDefinition> wikiMarkupMacroMarshaller)
render
public java.lang.String render(java.lang.String originalContent,
com.atlassian.renderer.RenderContext renderContext,
java.util.List<java.lang.RuntimeException> exceptions)
- Render the supplied wiki content.
- Parameters:
originalContent
- the content to renderrenderContext
- the context for the renderexceptions
- a List that will be populated with any exceptions thrown during rendering
- Returns:
- the XHTML version of the supplied wiki text
render
public java.lang.String render(java.lang.String originalContent,
com.atlassian.renderer.RenderContext renderContext)
- Specified by:
render
in interface com.atlassian.renderer.v2.Renderer
getRendererType
public java.lang.String getRendererType()
- Specified by:
getRendererType
in interface com.atlassian.renderer.v2.Renderer
setComponents
public void setComponents(java.util.List components)
- Specified by:
setComponents
in interface com.atlassian.renderer.v2.MutableRenderer
renderAsText
public java.lang.String renderAsText(java.lang.String originalContent,
com.atlassian.renderer.RenderContext context)
- Specified by:
renderAsText
in interface com.atlassian.renderer.v2.Renderer
Copyright © 2003-2013 Atlassian. All Rights Reserved.