Package org.geomajas.dojo.server.json

Examples of org.geomajas.dojo.server.json.JsonObjectWriter


      log.error("can't parse call: " + data, e);
      jsonRes = new JSONRPCResult(JSONRPCResult.CODE_ERR_PARSE, null, JSONRPCResult.MSG_ERR_PARSE);
    }

    // Write the response
    JsonObjectWriter writer = new JsonObjectWriter(response.getWriter(), 3);
    writer.write(jsonRes);
    writer.flush();

    JSONArray jsonArray = (JSONArray) jsonReq.get("params");
    long millis = System.currentTimeMillis() - startTime;
    log.debug("Command execution time: " + millis + " ms - class=" + jsonArray.toString());
  }
View Full Code Here

TOP

Related Classes of org.geomajas.dojo.server.json.JsonObjectWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.