Class BambooDefaultTextProvider

java.lang.Object
com.opensymphony.xwork2.DefaultTextProvider
com.atlassian.bamboo.struts.BambooDefaultTextProvider
All Implemented Interfaces:
com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Unchainable, Serializable, org.apache.struts2.Unchainable
Direct Known Subclasses:
BambooTextProvider

public class BambooDefaultTextProvider extends com.opensymphony.xwork2.DefaultTextProvider
Extends Struts' default behavior to handle situations where action context is not provided. In this case, the locale will be null and this extension uses EN_US by default. These situations should be quite rare, but they might happen during tests or when TextProvider is used outside Struts context (REST calls).
Since:
11.0
See Also:
  • Constructor Details

    • BambooDefaultTextProvider

      public BambooDefaultTextProvider()
  • Method Details

    • getText

      public String getText(String key)
      Specified by:
      getText in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getText in class com.opensymphony.xwork2.DefaultTextProvider
    • getText

      public String getText(String key, List<?> args)
      Specified by:
      getText in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getText in class com.opensymphony.xwork2.DefaultTextProvider
    • getText

      public String getText(String key, String[] args)
      Specified by:
      getText in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getText in class com.opensymphony.xwork2.DefaultTextProvider
    • getText

      public String getText(String key, String defaultValue, List<?> args)
      Specified by:
      getText in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getText in class com.opensymphony.xwork2.DefaultTextProvider
    • getText

      public String getText(String key, String defaultValue, String[] args)
      Specified by:
      getText in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getText in class com.opensymphony.xwork2.DefaultTextProvider
    • getTexts

      public ResourceBundle getTexts(String bundleName)
      Specified by:
      getTexts in interface com.opensymphony.xwork2.TextProvider
      Overrides:
      getTexts in class com.opensymphony.xwork2.DefaultTextProvider