Class SwitchingEncoder

java.lang.Object
com.atlassian.jira.render.SwitchingEncoder
All Implemented Interfaces:
Encoder

public class SwitchingEncoder extends Object implements Encoder
Encoder that delegates to the correct implementation depending on whether it is running in OnDemand or not.
Since:
v5.0.7
  • Constructor Details

  • Method Details

    • encodeForHtml

      @Nonnull public String encodeForHtml(@Nullable Object input)
      Description copied from interface: Encoder
      Renders input as HTML. This method calls toString() on input in order to get its String representation. If input is null, this method returns "".
      Specified by:
      encodeForHtml in interface Encoder
      Parameters:
      input - a String
      Returns:
      a String that is encoded for HTML
    • createEncoder

      @Nonnull protected Encoder createEncoder()