Package com.atlassian.bamboo.struts
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:
-
Field Summary
Fields inherited from class com.opensymphony.xwork2.DefaultTextProvider
localizedTextProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.opensymphony.xwork2.DefaultTextProvider
getText, getText, getText, getText, getTexts, hasKey, setLocalizedTextProvider
-
Constructor Details
-
BambooDefaultTextProvider
public BambooDefaultTextProvider()
-
-
Method Details
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.DefaultTextProvider
-
getTexts
- Specified by:
getTexts
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getTexts
in classcom.opensymphony.xwork2.DefaultTextProvider
-