public class

SwitchingEncoder

extends Object
implements Encoder
java.lang.Object
   ↳ com.atlassian.jira.render.SwitchingEncoder

Class Overview

Encoder that delegates to the correct implementation depending on whether it is running in OnDemand or not.

Summary

Public Constructors
SwitchingEncoder(FeatureManager featureManager)
Public Methods
@Nonnull String encodeForHtml(Object input)
Renders input as HTML.
Protected Methods
@Nonnull Encoder createEncoder()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.render.Encoder

Public Constructors

public SwitchingEncoder (FeatureManager featureManager)

Public Methods

@Nonnull public String encodeForHtml (Object input)

Renders input as HTML. This method calls toString() on input in order to get its String representation. If input is null, this method returns "".

Parameters
input a String
Returns
  • a String that is encoded for HTML

Protected Methods

@Nonnull protected Encoder createEncoder ()