Class FileBasedTheme

java.lang.Object
org.keycloak.theme.FileBasedTheme
All Implemented Interfaces:
Theme
Direct Known Subclasses:
ClassLoaderTheme, FolderTheme

public abstract class FileBasedTheme extends Object implements Theme
  • Constructor Details

    • FileBasedTheme

      public FileBasedTheme()
  • Method Details

    • loadBundle

      protected abstract void loadBundle(String baseBundlename, Locale locale, Properties m) throws IOException
      Throws:
      IOException
    • getMessages

      public Properties getMessages(String baseBundlename, Locale locale) throws IOException
      Description copied from interface: Theme
      Retrieve localized messages from a message bundle.
      Specified by:
      getMessages in interface Theme
      Parameters:
      baseBundlename - The base name of the bundle, such as "messages" in messages_en.properties.
      locale - The locale of the desired message bundle.
      Returns:
      The localized messages from the bundle.
      Throws:
      IOException - If bundle can not be read.
    • toBundleName

      public String toBundleName(String baseName, Locale locale)