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 java.lang.String |
defaultLocale |
protected java.lang.String |
localeCookie |
protected java.lang.String |
localeQueryParam |
protected java.lang.String[] |
localeSearchOrder |
| Constructor and Description |
|---|
GwtServletBase() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getCookie(javax.servlet.http.HttpServletRequest req,
java.lang.String cookieName)
Fetch a cookie from the HTTP request.
|
protected java.lang.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 java.lang.String[] localeSearchOrder
protected java.lang.String defaultLocale
protected java.lang.String localeCookie
protected java.lang.String localeQueryParam
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected final java.lang.String getCookie(javax.servlet.http.HttpServletRequest req,
java.lang.String cookieName)
req - cookieName - protected java.lang.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,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected 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 -