Package org.keycloak.theme
Class ClassLoaderTheme
java.lang.Object
org.keycloak.theme.ClassLoaderTheme
- All Implemented Interfaces:
- Theme
- Author:
- Stian Thorgersen
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.keycloak.theme.ThemeTheme.Type
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetEnhancedMessages(RealmModel realm, Locale locale) Retrieve localized messages from a message bundle named "messages" and enhance those messages with messages from realm localization.getMessages(String baseBundlename, Locale locale) Retrieve localized messages from a message bundle.getMessages(Locale locale) Same as getMessages(baseBundlename, locale), but uses a default baseBundlename such as "messages".getName()getResourceAsStream(String path) getTemplate(String name) getType()voidinit(String name, Theme.Type type, ClassLoader classLoader) 
- 
Constructor Details- 
ClassLoaderTheme- Throws:
- IOException
 
 
- 
- 
Method Details- 
init- Throws:
- IOException
 
- 
getName
- 
getParentName- Specified by:
- getParentNamein interface- Theme
 
- 
getImportName- Specified by:
- getImportNamein interface- Theme
 
- 
getType
- 
getTemplate- Specified by:
- getTemplatein interface- Theme
 
- 
getResourceAsStream- Specified by:
- getResourceAsStreamin interface- Theme
- Throws:
- IOException
 
- 
getMessagesDescription copied from interface:ThemeSame as getMessages(baseBundlename, locale), but uses a default baseBundlename such as "messages".- Specified by:
- getMessagesin interface- Theme
- Parameters:
- locale- The locale of the desired message bundle.
- Returns:
- The localized messages from the bundle.
- Throws:
- IOException- If bundle can not be read.
 
- 
getMessagesDescription copied from interface:ThemeRetrieve localized messages from a message bundle.- Specified by:
- getMessagesin 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.
 
- 
getEnhancedMessagesDescription copied from interface:ThemeRetrieve localized messages from a message bundle named "messages" and enhance those messages with messages from realm localization.In general, the translation for the most specific applicable language is used. If a translation exists both in the message bundle and realm localization, the realm localization translation is used. - Specified by:
- getEnhancedMessagesin interface- Theme
- Parameters:
- realm- The realm from which the localization should be retrieved
- locale- The locale of the desired message bundle.
- Returns:
- The localized messages from the bundle, enhanced with realm localization
- Throws:
- IOException- If bundle can not be read.
 
- 
getProperties- Specified by:
- getPropertiesin interface- Theme
 
 
-