
public class GwtServletBase
extends javax.servlet.http.HttpServlet
For now, subclasses should override init() and set the locale
configuration fields - eventually this will be read from a deploy artifact.
| Modifier and Type | Field and Description |
|---|---|
protected String |
defaultLocale |
protected String |
localeCookie |
protected String |
localeQueryParam |
protected String[] |
localeSearchOrder |
| Constructor and Description |
|---|
GwtServletBase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCookie(javax.servlet.http.HttpServletRequest req,
String cookieName)
Fetch a cookie from the HTTP request.
|
protected String |
getGwtLocale(javax.servlet.http.HttpServletRequest req)
Get the GWT locale to use from this request.
|
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
setGwtProperties(javax.servlet.http.HttpServletRequest req)
Sets all GWT properties from the request.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected String[] localeSearchOrder
protected String defaultLocale
protected String localeCookie
protected String localeQueryParam
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected final String getCookie(javax.servlet.http.HttpServletRequest req, String cookieName)
req - cookieName - protected String getGwtLocale(javax.servlet.http.HttpServletRequest req)
req - protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void setGwtProperties(javax.servlet.http.HttpServletRequest req)
If this method is overridden, this version should be called first and then any modifications to property values should be done.
req - Copyright © 2018. All rights reserved.