com.ibm.commerce.ras

Class ServerResourceBundleBridge

  • java.lang.Object
    • com.ibm.commerce.ras.ServerResourceBundleBridge


  • public final class ServerResourceBundleBridge
    extends java.lang.Object
    Handles locale dependant strings.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ServerResourceBundleBridge(java.util.Locale theLocale, java.lang.String resourceBundleName)
      Constructor for ServerResourceBundleBridge
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerResourceBundleBridge

        public ServerResourceBundleBridge(java.util.Locale theLocale,
                                          java.lang.String resourceBundleName)
        Constructor for ServerResourceBundleBridge
        Parameters:
        theLocale - Locale used to define the language
        resourceBundleName - resource bundle to retrieve the message text
    • Method Detail

      • get

        public final java.lang.String get(java.lang.String id)
        Gets the message from the given id for the default locale.
        Parameters:
        id - message identifier
        Returns:
        the locale dependent message
      • get

        public final java.lang.String get(java.lang.String id,
                                          java.util.Locale locale)
        Gets the locale dependent message from the given id.
        Parameters:
        id - message identifier
        locale - the Locale of the message
        Returns:
        the local dependent message
      • main

        public static void main(java.lang.String[] args)
        Test program