com.ibm.security.jgss.i18n
Class PropertyResource
- java.lang.Object
com.ibm.security.jgss.i18n.I18NResource
com.ibm.security.jgss.i18n.PropertyResource
- public final class PropertyResource
- extends I18NResource
Field Summary
Modifier and Type | Field and Description |
---|---|
|
PROPERTIES_FILE
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getBundle()
|
|
getExceptionInstance()
Creates an exception resource in the current locale.
|
|
getFile()
|
|
getFormattedString(java.lang.String key,java.lang.Object[] positionalParams)
|
|
getGeneralInstance()
Creates a general resource in the current locale.
|
|
getLocale()
|
|
getPrefix()
|
|
getString(java.lang.String key)
|
|
setLocale(java.util.Locale newLocale)
Sets the locale to the specified locale.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
PROPERTIES_FILE
- public static final java.lang.String PROPERTIES_FILE
See Also:
Method Detail
setLocale
- public static void setLocale(java.util.Locale newLocale)
Sets the locale to the specified locale.
Existing instances of PropertyResource that are used by JGSS
are recreated to use the new locale.
An application that needs to run in a locale other than the
default locale should call setLocale before any JGSS exception
is thrown or message displayed.
getGeneralInstance
- public static PropertyResource getGeneralInstance( )
Creates a general resource in the current locale.
getExceptionInstance
- public static PropertyResource getExceptionInstance( )
Creates an exception resource in the current locale.
getBundle
- public java.util.ResourceBundle getBundle( )
Specified by:
getBundle
in class I18NResource
getLocale
- public java.util.Locale getLocale( )
getPrefix
- public java.lang.String getPrefix( )
Specified by:
getPrefix
in class I18NResource
getFile
- public java.lang.String getFile( )
Specified by:
getFile
in class I18NResource
getString
- public java.lang.String getString( java.lang.String key)
Specified by:
getString
in class I18NResource
getFormattedString
- public java.lang.String getFormattedString( java.lang.String key,
- java.lang.Object[] positionalParams)
Specified by:
getFormattedString
in class I18NResource