com.ibm.security.jgss.i18n

Class PropertyResource

  1. java.lang.Object
  2. extended bycom.ibm.security.jgss.i18n.I18NResource
  3. extended bycom.ibm.security.jgss.i18n.PropertyResource

  1. public final class PropertyResource
  2. extends I18NResource

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
PROPERTIES_FILE

Method Summary

Modifier and Type Method and Description
  1. java.util.ResourceBundle
getBundle()
  1. static
  2. PropertyResource
getExceptionInstance()
Creates an exception resource in the current locale.
  1. java.lang.String
getFile()
  1. java.lang.String
getFormattedString(java.lang.String key,java.lang.Object[] positionalParams)
  1. static
  2. PropertyResource
getGeneralInstance()
Creates a general resource in the current locale.
  1. java.util.Locale
getLocale()
  1. java.lang.String
getPrefix()
  1. java.lang.String
getString(java.lang.String key)
  1. static
  2. void
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

  1. public static final java.lang.String PROPERTIES_FILE
See Also:

Method Detail

setLocale

  1. 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

  1. public static PropertyResource getGeneralInstance( )
Creates a general resource in the current locale.

getExceptionInstance

  1. public static PropertyResource getExceptionInstance( )
Creates an exception resource in the current locale.

getBundle

  1. public java.util.ResourceBundle getBundle( )
Specified by:

getLocale

  1. public java.util.Locale getLocale( )

getPrefix

  1. public java.lang.String getPrefix( )
Specified by:

getFile

  1. public java.lang.String getFile( )
Specified by:

getString

  1. public java.lang.String getString( java.lang.String key)
Specified by:

getFormattedString

  1. public java.lang.String getFormattedString( java.lang.String key,
  2. java.lang.Object[] positionalParams)
Specified by: