Package com.esri.gpt.server.usage.common

Examples of com.esri.gpt.server.usage.common.JSONWriter


    String outputFormat = Val.chkStr(attrMap.getValue("f"));
    if (outputFormat.equalsIgnoreCase("json")
        && statReqContext.getRequestType().equalsIgnoreCase(
            StatisticsTypes.HARVESTER.toString())) {
      response.setContentType("text/plain; charset=UTF-8");
      rsWriter = new JSONWriter(writer,
          statReqContext.getResponseString());
    } else if (outputFormat.equalsIgnoreCase("html")) {
      throw new Exception("Output format not supported.");
    } else if (outputFormat.equalsIgnoreCase("xml")) {
      throw new Exception("Output format not supported.");
    } else {
      rsWriter = new JSONWriter(writer,
          statReqContext.getResponseString());
    }
    statReqContext.setWriter(rsWriter);
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.server.usage.common.JSONWriter

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.