Class OutputTypeThreadLocal

java.lang.Object
com.atlassian.confluence.util.OutputTypeThreadLocal

public class OutputTypeThreadLocal extends Object
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 Details

    • set

      public static void set(ConversionContextOutputType targetType)
      Set the output type of the current execution
      Parameters:
      targetType - the output type of the current execution steps.
    • get

      public static ConversionContextOutputType 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