Package com.atlassian.jira.render
Class SwitchingEncoder
java.lang.Object
com.atlassian.jira.render.SwitchingEncoder
- All Implemented Interfaces:
Encoder
Encoder that delegates to the correct implementation depending on whether it is running in OnDemand or not.
- Since:
- v5.0.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EncoderencodeForHtml(Object input) Rendersinputas HTML.
-
Constructor Details
-
SwitchingEncoder
-
-
Method Details
-
encodeForHtml
Description copied from interface:EncoderRendersinputas HTML. This method calls toString() oninputin order to get its String representation. Ifinputis null, this method returns "".- Specified by:
encodeForHtmlin interfaceEncoder- Parameters:
input- a String- Returns:
- a String that is encoded for HTML
-
createEncoder
-