Package com.ptc.mvc.util
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
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionGet the current client locale.getMessage(String code) Get the given message using the current client locale
Supported API: truegetMessage(String code, Object[] args) Get the given message using the current client locale
Supported API: true
-
Method Details
-
getMessage
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
Get the given message using the current client locale
Supported API: true- Parameters:
code- The code to use to look up the localeargs- 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
-