Interface ServerMessageLocalizer


public interface ServerMessageLocalizer
Wrapper around the WTMessage class to allow for unit testing.

Supported API: true

Extendable: false
  • Method Summary

    Modifier and Type
    Method
    Description
    getLocalizedMessage(String bundle_name, String key, Object... param_array)
    Returns a localized message from the specified bundle, key, and parameters, using the locale from session

    Supported API: true
    getLocalizedMessage(String aBundleName, String aKey, Object aParam, Locale aLocale)
    Returns a localized message from the specified bundle, key, and parameters, using the locale specified for the thread.
  • Method Details

    • getLocalizedMessage

      String getLocalizedMessage(String bundle_name, String key, Object... param_array) throws WTException
      Returns a localized message from the specified bundle, key, and parameters, using the locale from session

      Supported API: true
      Parameters:
      bundle_name - name of the resource bundle to use
      key - key to use for the message in the bundle
      param_array - parameters to use for the message. if its persistable we get display identity for it else we directly use what is passed in the message
      Returns:
      localized message
      Throws:
      WTException
    • getLocalizedMessage

      String getLocalizedMessage(String aBundleName, String aKey, Object aParam, Locale aLocale)
      Returns a localized message from the specified bundle, key, and parameters, using the locale specified for the thread.

      Supported API: true
      Parameters:
      aBundleName - name of the resource bundle to use
      aKey - key to use for the message in the bundle
      aParam - parameter to use for the message
      aLocale - locale
      Returns:
      localized message