com.atlassian.jira.render
Class SwitchingEncoder

java.lang.Object
  extended by 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 Summary
SwitchingEncoder(FeatureManager featureManager)
           
 
Method Summary
protected  Encoder createEncoder()
           
 String encodeForHtml(Object input)
          Renders input as HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwitchingEncoder

public SwitchingEncoder(FeatureManager featureManager)
Method Detail

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()


Copyright © 2002-2013 Atlassian. All Rights Reserved.