public class LocaleResolver
extends java.lang.Object
Responsible for setting up client Locale for the context
The client locale info is resolved in the following sequence: 1. check the request parameter by configured name 2. check the session variable 3. check the cookie value 4. check the Accept-Language
header 5. use the server locale
Constructor and Description |
---|
LocaleResolver(ActionContext context) |
Modifier and Type | Method and Description |
---|---|
void |
dissolve() |
static void |
main(java.lang.String[] args) |
void |
resolve() |
static void |
updateLocale(org.osgl.http.H.Request request) |
@Inject public LocaleResolver(ActionContext context)
Copyright © 2014–2017 ActFramework. All rights reserved.