public final class ServerResourceBundleBridge
extends java.lang.Object
Constructor and Description |
---|
ServerResourceBundleBridge(java.util.Locale theLocale,
java.lang.String resourceBundleName)
Constructor for ServerResourceBundleBridge
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get(java.lang.String id)
Gets the message from the given id for the default locale.
|
java.lang.String |
get(java.lang.String id,
java.util.Locale locale)
Gets the locale dependent message from the given id.
|
static void |
main(java.lang.String[] args)
Test program
|
public ServerResourceBundleBridge(java.util.Locale theLocale, java.lang.String resourceBundleName)
theLocale
- Locale used to define the languageresourceBundleName
- resource bundle to retrieve the message textpublic final java.lang.String get(java.lang.String id)
id
- message identifierpublic final java.lang.String get(java.lang.String id, java.util.Locale locale)
id
- message identifierlocale
- the Locale of the messagepublic static void main(java.lang.String[] args)