public class ModelAsJsonRequestHandler extends RequestHandlerSupport
WroModel as JSON when the following uri is accessed: "wroAPI/model". This RequestHandler
is useful to inspect the model and to simulate the behavior of the page when all resources are included (one by one)
without being merged.| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
The alias of this
RequestHandler used for configuration. |
static String |
ENDPOINT_URI
API - reload cache method call
|
PATH_API| Constructor and Description |
|---|
ModelAsJsonRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isEnabled() |
protected com.google.gson.Gson |
newGson(javax.servlet.http.HttpServletRequest request) |
public static final String ENDPOINT_URI
public static final String ALIAS
RequestHandler used for configuration.public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
handle in interface RequestHandlerhandle in class RequestHandlerSupportIOExceptionprotected com.google.gson.Gson newGson(javax.servlet.http.HttpServletRequest request)
Gson instance.public boolean accept(javax.servlet.http.HttpServletRequest request)
accept in interface RequestHandleraccept in class RequestHandlerSupportpublic boolean isEnabled()
isEnabled in interface RequestHandlerisEnabled in class RequestHandlerSupportCopyright © 2008-2013. All Rights Reserved.