|
void | request (Session sess, Object request, Object response) |
|
◆ request()
void org.turro.zkoss.locale.LocaleProvider.request |
( |
Session |
sess, |
|
|
Object |
request, |
|
|
Object |
response |
|
) |
| |
Definition at line 36 of file LocaleProvider.java.
37 final Cookie[] cookies = ((HttpServletRequest)
request).getCookies();
38 if (cookies !=
null) {
39 for (
int j = cookies.length; --j >= 0;) {
40 if (cookies[j].getName().equals(
"lang")) {
41 String val = cookies[j].getValue();
44 if(val.startsWith(
"_")) val = val.substring(1);
45 Locale locale = org.zkoss.util.Locales.getLocale(val);
46 sess.setAttribute(Attributes.PREFERRED_LOCALE, locale);
52 ZkossElephant.instance((HttpServletRequest)
request, (HttpServletResponse) response);
void request(Session sess, Object request, Object response)
The documentation for this class was generated from the following file: