Class DiagnosticJsonRenderer
- java.lang.Object
-
- com.microstrategy.web.blocks.renderers.AbstractRenderer
-
- com.microstrategy.web.blocks.renderers.JsonRenderer
-
- com.microstrategy.web.blocks.renderers.DiagnosticJsonRenderer
-
- All Implemented Interfaces:
Renderer
public class DiagnosticJsonRenderer extends JsonRenderer
A diagnostic version of the JsonRenderer that includes the block name in the generated JSON. It also generates statistics on the Blocks processed and sends it to STDERR (System.err).- Since:
- MicroStrategy Web 9.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BLOCK_PROP_BLOCK_NAME
The name of the property that is used to hold the block name.-
Fields inherited from class com.microstrategy.web.blocks.renderers.JsonRenderer
PROPERTY_ANNOTATION_EXPRESSION, PROPERTY_ANNOTATION_GROUP
-
Fields inherited from class com.microstrategy.web.blocks.renderers.AbstractRenderer
contentEncoders
-
-
Constructor Summary
Constructors Constructor Description DiagnosticJsonRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkupOutput
generateMarkup(BlockContext bContext, Block block)
Generate the markup representation of the specified Block.-
Methods inherited from class com.microstrategy.web.blocks.renderers.JsonRenderer
buildJsonGeneratorTree, getBlockPropertyComparator
-
Methods inherited from class com.microstrategy.web.blocks.renderers.AbstractRenderer
setEncoderChain
-
-
-
-
Field Detail
-
BLOCK_PROP_BLOCK_NAME
public static final java.lang.String BLOCK_PROP_BLOCK_NAME
The name of the property that is used to hold the block name.- See Also:
- Constant Field Values
-
-
Method Detail
-
generateMarkup
public MarkupOutput generateMarkup(BlockContext bContext, Block block) throws java.lang.Exception
Description copied from interface:Renderer
Generate the markup representation of the specified Block.- Specified by:
generateMarkup
in interfaceRenderer
- Overrides:
generateMarkup
in classJsonRenderer
- Parameters:
bContext
- TheBlockContext
object that controls how BlockProperty values are expanded and Blocks are serialized.block
- TheBlock
to generate markup for.- Returns:
- A new
MarkupOutput
object that contains the generated markup. - Throws:
java.lang.Exception
- If an error occurs in the process of generating the markup.
-
-