if ("cookie".equals(localeMethod)) { if (localeCookie != null) { locale = getCookie(req, localeCookie);
/** * Sets all GWT properties from the request. * <p> * If this method is overridden, this version should be called first and then * any modifications to property values should be done. * * @param req */ protected void setGwtProperties(HttpServletRequest req) { ServerGwtBridge.getInstance().setThreadProperty("locale", getGwtLocale(req)); // TODO(jat): other properties, such as user.agent? } }
@Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { setGwtProperties(req); super.service(req, resp); }
@Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { setGwtProperties(req); super.service(req, resp); }
/** * Sets all GWT properties from the request. * <p> * If this method is overridden, this version should be called first and then * any modifications to property values should be done. * * @param req */ protected void setGwtProperties(HttpServletRequest req) { ServerGwtBridge.getInstance().setThreadProperty("locale", getGwtLocale(req)); // TODO(jat): other properties, such as user.agent? } }
if ("cookie".equals(localeMethod)) { if (localeCookie != null) { locale = getCookie(req, localeCookie);
@Override protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { setGwtProperties(req); super.service(req, resp); }
/** * Sets all GWT properties from the request. * <p> * If this method is overridden, this version should be called first and then * any modifications to property values should be done. * * @param req */ protected void setGwtProperties(HttpServletRequest req) { ServerGwtBridge.getInstance().setThreadProperty("locale", getGwtLocale(req)); // TODO(jat): other properties, such as user.agent? } }
if ("cookie".equals(localeMethod)) { if (localeCookie != null) { locale = getCookie(req, localeCookie);