Class CmsJsonMessageContainer

  • All Implemented Interfaces:
    I_CmsMessageContainer

    public class CmsJsonMessageContainer
    extends java.lang.Object
    implements 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

      Constructors 
      Constructor Description
      CmsJsonMessageContainer​(java.lang.Object jsonValue)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String key​(java.util.Locale locale)
      Gets the real message for the given locale.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait