5 saiku3.8+cboard

cboard仅提供saiku2.6的接口,若cboard想调用saiku3.8,接口要怎么改动?

 RestTemplate restTemplate = new RestTemplate();

System.out.println("1");

        ResponseEntity<String> a = restTemplate.postForEntity(serverIp + "/saiku/rest/saiku/session?username={username}&password={password}", null, String.class, username, password);

System.out.println(a);

        HttpHeaders headers = new HttpHeaders();

        headers.set("Cookie", Joiner.on(";").join(a.getHeaders().get("Set-Cookie")));


        String uuid = UUID.randomUUID().toString();

System.out.println("3");

        restTemplate.exchange(serverIp + "/saiku/rest/saiku/api/query/{id}?file={file}&formatter={formatter}&type={type}", HttpMethod.POST, new HttpEntity<>(headers), String.class, uuid, file, "flattened", "QM");

        System.out.println("4");

a = restTemplate.exchange(serverIp + "/saiku/rest/saiku/api/query/{id}/result/flattened", HttpMethod.GET, new HttpEntity<>(headers), String.class, uuid);

        System.out.println(a);

调试cboard调用saiku3.8只能输出到4,具体该怎么该。

请先 登录 后评论
  • 0 关注
  • 0 收藏,90 浏览
  • PPPYYY 提出于 2017-07-31 17:34

相似问题