com.atlassian.confluence.content.render.xhtml.transformers
Class TransformErrorToHtmlPlaceholder

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.transformers.TransformErrorToHtmlPlaceholder
All Implemented Interfaces:
FragmentTransformationErrorHandler

public class TransformErrorToHtmlPlaceholder
extends java.lang.Object
implements FragmentTransformationErrorHandler

Transforms erroneous fragment into an error placeholder which can be displayed in the editor and on view.


Constructor Summary
TransformErrorToHtmlPlaceholder(PlaceholderUrlFactory placeholderUrlFactory)
           
 
Method Summary
 java.lang.String handle(javax.xml.stream.XMLEventReader erroneousFragmentReader, java.lang.Exception transformationException)
          Handles fragment transformation problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformErrorToHtmlPlaceholder

public TransformErrorToHtmlPlaceholder(PlaceholderUrlFactory placeholderUrlFactory)
Method Detail

handle

public java.lang.String handle(javax.xml.stream.XMLEventReader erroneousFragmentReader,
                               java.lang.Exception transformationException)
Description copied from interface: FragmentTransformationErrorHandler
Handles fragment transformation problem.

Specified by:
handle in interface FragmentTransformationErrorHandler
Parameters:
erroneousFragmentReader - reader over fragment that caused a transformation problem
transformationException - the exception thrown during transformation of the erroneous fragment.
Returns:
an alternate representation of the erroneous fragment in XML (that is more friendly to edit or display)


Copyright © 2003-2014 Atlassian. All Rights Reserved.