Interface ClientMessageSource

All Superinterfaces:
org.springframework.context.MessageSource
All Known Implementing Classes:
ResourceBundleClientMessageSource

public interface ClientMessageSource extends org.springframework.context.MessageSource
A message source that knows the current client locale.

Supported API: true

Extendable: false
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the current client locale.
    Get the given message using the current client locale

    Supported API: true
    getMessage(String code, Object[] args)
    Get the given message using the current client locale

    Supported API: true
  • Method Details

    • getMessage

      String getMessage(String code)
      Get the given message using the current client locale

      Supported API: true
      Parameters:
      code - The code to use to look up the locale
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(String code, Object[] args)
      Get the given message using the current client locale

      Supported API: true
      Parameters:
      code - The code to use to look up the locale
      args - The optional arguments to use
      Returns:
      The message
      Throws:
      org.springframework.context.NoSuchMessageException
    • getClientLocale

      Locale getClientLocale()
      Get the current client locale.

      Supported API: true
      Returns:
      The current client locale