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