Exemplo n.º 1
0
 @GET
 @Path("/getCubeStructure")
 @Produces("text/javascript")
 public void getCubeStructure(
     @QueryParam(MethodParams.CATALOG) String catalog,
     @QueryParam(MethodParams.CUBE) String cube,
     @QueryParam(MethodParams.JNDI) String jndi,
     @Context HttpServletResponse response)
     throws IOException, JSONException {
   OlapUtils olapUtils = new OlapUtils();
   JSONObject result = olapUtils.getCubeStructure(catalog, cube, jndi);
   JsonUtils.buildJsonResult(response.getOutputStream(), result != null, result);
 }