|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
com.vaadin.grails.terminal.gwt.server.RestartingApplicationHttpServletRequest
public class RestartingApplicationHttpServletRequest extends HttpServletRequestWrapper
An HttpServletRequest wrapper implementation that guarantees the existence of a restartApplication request parameter by artificially setting it with a value of "true".
When the Grails Vaadin plugin determines that a Vaadin component's source code has changed, it will create an instance of this class to use when calling the Vaadin AbstractApplicationServlet that processes all Vaadin requests. This servlet will react to the artificially-set restartApplication request parameter and automatically reload a new Vaadin Application instance that reflects the changed source code. Note: this class makes strict assumptions of Vaadin's internal implementation details. It is not intended to be used by end-users directly.Field Summary | |
---|---|
static String |
RESTART_TOKEN_SESSION_KEY
|
private Map |
parameterMap
|
private static String |
restartToken
|
Fields inherited from class HttpServletRequestWrapper | |
---|---|
BASIC_AUTH, FORM_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH |
Constructor Summary | |
RestartingApplicationHttpServletRequest(HttpServletRequest request)
|
Method Summary | |
---|---|
String
|
getParameter(String name)
|
Map
|
getParameterMap()
|
Enumeration
|
getParameterNames()
|
String[]
|
getParameterValues(String name)
|
static String
|
getRestartToken()
Returns a token value used to determine if a request's associated Vaadin application needs to be reloaded. |
static void
|
setRestartToken(String token)
Sets a unique token value used to trigger new Vaadin Application instances to be dynamically recreated after a Grails Vaadin component source-code change. |
Field Detail |
---|
public static final String RESTART_TOKEN_SESSION_KEY
private final Map parameterMap
private static String restartToken
Constructor Detail |
---|
@SuppressWarnings({ "unchecked" }) public RestartingApplicationHttpServletRequest(HttpServletRequest request)
Method Detail |
---|
@Override public String getParameter(String name)
@Override public Map getParameterMap()
@Override public Enumeration getParameterNames()
@Override public String[] getParameterValues(String name)
public static String getRestartToken()
public static void setRestartToken(String token)
token
- the unique token value used to trigger new Vaadin Application
instances to be dynamically recreated after a Grails Vaadin
component source-code change.
Groovy Documentation