Map headMap = new HashMap();
headMap.put("Cookie", "x-token=" + token); headMap.put("accept", "/");
headMap.put("connection", "Keep-Alive");
headMap.put("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
String url = "http://127.0.0.1:20020/x_processplatform_assemble_surface/jaxrs/work/count/%E6%88%[email protected]@P"; HttpClientUtils2 httpClientUtils = new HttpClientUtils2();
str = httpClientUtils.httpGet(url,headMap);
JSONObject jsonObj = (JSONObject)(new JSONParser().parse(str));
JSONObject data = (JSONObject) jsonObj.get("data");
count = data.get("task").toString();
System.out.println("count=" + count);
} catch (ParseException e) {
url = "http://127.0.0.1:20020/x_processplatform_assemble_surface/jaxrs/task/list/(0)/next/"+count;
str = httpClientUtils.httpGet(url,headMap);
JSONObject jsonObj = (JSONObject)(new JSONParser().parse(str));
JSONArray datas = (JSONArray) jsonObj.get("data");
for(int i =0;i<datas.size();i++) {
JSONObject data=(JSONObject)datas.get(i);
String workid = (String) data.get("work");
System.out.println(workid);
} catch (ParseException e) {