java.lang.Object | |
↳ | com.google.gwt.i18n.linker.LocalePropertyProviderGenerator |
Generates a property provider implementation for the "locale" property.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | LOCALE_COOKIE | ||||||||||
String | LOCALE_QUERYPARAM | ||||||||||
String | LOCALE_SEARCHORDER | ||||||||||
String | LOCALE_USEMETA | ||||||||||
String | LOCALE_USERAGENT |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
COOKIE_PATTERN | |||||||||||
QUERYPARAM_PATTERN |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generate JS code that looks up the locale value from a cookie.
| |||||||||||
Generate JS code that takes the value of the "locale" variable and finds
parent locales until the value is a supported locale or the default locale.
| |||||||||||
Generate JS code to fetch the locale from a meta property.
| |||||||||||
Generate JS code to get the locale from a query parameter.
| |||||||||||
Generate JS code to fetch the locale from the user agent's compile-time
locale.
| |||||||||||
Return true when the supplied value represents a true/yes/on value.
| |||||||||||
Validate that a name is a valid cookie name.
| |||||||||||
Validate that a value is a valid query parameter name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.core.ext.linker.PropertyProviderGenerator
|
UnableToCompleteException |
---|
Generate JS code that looks up the locale value from a cookie.
logger | logger to use |
---|
UnableToCompleteException |
---|
Generate JS code that takes the value of the "locale" variable and finds parent locales until the value is a supported locale or the default locale.
logger | logger to use |
---|
UnableToCompleteException |
---|
Generate JS code to fetch the locale from a meta property.
logger | logger to use |
---|
UnableToCompleteException |
---|
Generate JS code to get the locale from a query parameter.
logger | logger to use |
---|---|
body | where to append JS output |
queryParam | the query parameter to use |
UnableToCompleteException |
---|
Generate JS code to fetch the locale from the user agent's compile-time locale.
logger | logger to use |
---|
UnableToCompleteException |
---|
Return true when the supplied value represents a true/yes/on value.
Validate that a name is a valid cookie name.
Validate that a value is a valid query parameter name.