Package org.keycloak.theme
Class FileBasedTheme
java.lang.Object
org.keycloak.theme.FileBasedTheme
- All Implemented Interfaces:
Theme
- Direct Known Subclasses:
ClassLoaderTheme
,FolderTheme
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.theme.Theme
Theme.Type
-
Field Summary
Fields inherited from interface org.keycloak.theme.Theme
ACCOUNT_RESOURCE_PROVIDER_KEY, CONTENT_HASH_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessages
(String baseBundlename, Locale locale) Retrieve localized messages from a message bundle.protected abstract void
loadBundle
(String baseBundlename, Locale locale, Properties m) toBundleName
(String baseName, Locale locale) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.theme.Theme
getEnhancedMessages, getImportName, getMessages, getName, getParentName, getProperties, getResourceAsStream, getTemplate, getType, hasContentHash
-
Constructor Details
-
FileBasedTheme
public FileBasedTheme()
-
-
Method Details
-
loadBundle
protected abstract void loadBundle(String baseBundlename, Locale locale, Properties m) throws IOException - Throws:
IOException
-
getMessages
Description copied from interface:Theme
Retrieve localized messages from a message bundle.- Specified by:
getMessages
in interfaceTheme
- 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
-