/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/http/handler/ModelAsJsonRequestHandler.java
} response.getWriter( ).flush( ) ;
response.getWriter ( ) .flush ( ) ; }
public void handle(final HttpServletRequest request, final HttpServletResponse response) throws IOException { ResponseHeadersConfigurer.noCache().setHeaders(response); response.setContentType(CONTENT_TYPE); response.setStatus(HttpServletResponse.SC_OK); newGson(request).toJson(modelFactory.create(), response.getWriter()); <extra_id_0> protected Gson newGson(final HttpServletRequest request) { return new GsonBuilder().registerTypeAdapter(Resource.class, new ResourceSerializer(getWroBasePath(request))).setPrettyPrinting().disableHtmlEscaping().create(); } @Override public boolean accept(final HttpServletRequest request) { return WroUtil.matchesUrl(request, ENDPOINT_URI);