public class BundleMessageSource extends Object
ResourceBundle class for the purpose
of i18n of the STS client error messages
Thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
BundleMessageSource.Key |
| Constructor and Description |
|---|
BundleMessageSource(Locale locale)
Creates a new message resource, based on the
com.vmware.vim.sso.client.impl.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createMessage(SsoException e)
Creates a localized message for this exception.
|
String |
createMessage(SsoRuntimeException e)
Creates a localized message for this exception.
|
String |
get(BundleMessageSource.Key key) |
Locale |
getLocale() |
public BundleMessageSource(Locale locale)
locale - required, can be Locale.getDefault()ResourceBundle.getBundle(String)public String get(BundleMessageSource.Key key)
key - type of message needed, requiredpublic String createMessage(SsoException e)
Localizable are exceptions with e.getKey != null
e - exception, requiredpublic String createMessage(SsoRuntimeException e)
Localizable are exceptions with e.getKey != null
e - exception, requiredpublic Locale getLocale()
Copyright © 2016. All rights reserved.