Package org.keycloak.theme
Interface Theme
-
- All Known Implementing Classes:
ClassLoaderTheme
,FolderTheme
public interface Theme
- Author:
- Stian Thorgersen
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Theme.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getImportName()
Properties
getMessages(String baseBundlename, Locale locale)
Retrieve localized messages from a message bundle.Properties
getMessages(Locale locale)
Same as getMessages(baseBundlename, locale), but uses a default baseBundlename such as "messages".String
getName()
String
getParentName()
Properties
getProperties()
InputStream
getResourceAsStream(String path)
URL
getTemplate(String name)
Theme.Type
getType()
-
-
-
Method Detail
-
getName
String getName()
-
getParentName
String getParentName()
-
getImportName
String getImportName()
-
getType
Theme.Type getType()
-
getTemplate
URL getTemplate(String name) throws IOException
- Throws:
IOException
-
getResourceAsStream
InputStream getResourceAsStream(String path) throws IOException
- Throws:
IOException
-
getMessages
Properties getMessages(Locale locale) throws IOException
Same as getMessages(baseBundlename, locale), but uses a default baseBundlename such as "messages".- Parameters:
locale
- The locale of the desired message bundle.- Returns:
- The localized messages from the bundle.
- Throws:
IOException
- If bundle can not be read.
-
getMessages
Properties getMessages(String baseBundlename, Locale locale) throws IOException
Retrieve localized messages from a message bundle.- 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.
-
getProperties
Properties getProperties() throws IOException
- Throws:
IOException
-
-