Package org.opencms.loader
Class CmsJsonMessageContainer
java.lang.Object
org.opencms.loader.CmsJsonMessageContainer
- All Implemented Interfaces:
I_CmsMessageContainer
Simple JSON-based message container.
This message container will accept an Object which may either be a simple string (in which case this string will always be returned as the message), or a JSONObject which has locale strings as keys and the corresponding message strings as values.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CmsJsonMessageContainer
Creates a new instance.- Parameters:
jsonValue
- the JSON value containing the message(s).
-
-
Method Details
-
key
Description copied from interface:I_CmsMessageContainer
Gets the real message for the given locale.- Specified by:
key
in interfaceI_CmsMessageContainer
- Parameters:
locale
- the locale- Returns:
- the message for the given locale
- See Also:
-