Package com.atlassian.confluence.util
Class OutputTypeThreadLocal
java.lang.Object
com.atlassian.confluence.util.OutputTypeThreadLocal
A thread local to determine what the intended output type of the executing thread will be. It's values should be set
to the
ConversionContextOutputType
at the highest level of the
execution stack as a single request might traverse multiple output type construction pathways.- Since:
- 9.2.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear the output type of the current executionstatic ConversionContextOutputType
get()
static void
set
(ConversionContextOutputType targetType) Set the output type of the current execution
-
Method Details
-
set
Set the output type of the current execution- Parameters:
targetType
- the output type of the current execution steps.
-
get
- Returns:
- returns what the output of the current execution should be. Defaults to DISPLAY
-
clear
public static void clear()Clear the output type of the current execution
-