Package org.astrogrid.samp.web
Class AuthResourceBundle
- java.lang.Object
-
- java.util.ResourceBundle
-
- org.astrogrid.samp.web.AuthResourceBundle
-
- Direct Known Subclasses:
AuthResourceBundle_de
,AuthResourceBundle_en
,AuthResourceBundle_fr
,AuthResourceBundle_it
public class AuthResourceBundle extends java.util.ResourceBundle
ResourceBundle for internationalising the Web Profile authorization dialogue.- Since:
- 15 Jul 2011
- Author:
- Mark Taylor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AuthResourceBundle.Content
Defines the keys and value types required for a bundle of this class.
-
Constructor Summary
Constructors Modifier Constructor Description AuthResourceBundle()
Constructs default (English) instance.protected
AuthResourceBundle(AuthResourceBundle.Content content)
Constructs a bundle based on a Content implementation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthResourceBundle.Content
getAuthContent(java.util.ResourceBundle bundle)
Returns a Content object based on a bundle which has the keys that AuthResourceBundle is supposed to have.java.util.Enumeration
getKeys()
protected java.lang.Object
handleGetObject(java.lang.String key)
static void
main(java.lang.String[] args)
Writes a template .properties file.
-
-
-
Constructor Detail
-
AuthResourceBundle
public AuthResourceBundle()
Constructs default (English) instance.
-
AuthResourceBundle
protected AuthResourceBundle(AuthResourceBundle.Content content)
Constructs a bundle based on a Content implementation.- Parameters:
content
- contains information required for bundle
-
-
Method Detail
-
handleGetObject
protected final java.lang.Object handleGetObject(java.lang.String key)
- Specified by:
handleGetObject
in classjava.util.ResourceBundle
-
getKeys
public final java.util.Enumeration getKeys()
- Specified by:
getKeys
in classjava.util.ResourceBundle
-
getAuthContent
public static AuthResourceBundle.Content getAuthContent(java.util.ResourceBundle bundle)
Returns a Content object based on a bundle which has the keys that AuthResourceBundle is supposed to have. If any of the required keys are missing, the result falls back to a default bundle.- Parameters:
bundle
- resource bundle- Returns:
- content object guaranteed to have non-null contents for all its attributes
-
main
public static void main(java.lang.String[] args)
Writes a template .properties file. Sensitive to the locale.
-
-