@GET @Path("/{cloudName}") public Cloud getCloud(@PathParam("cloudName") String cloudName) throws MalformedURLException { subjectLog(); return service.getCloudStatus(cloudName); }
@GET public Response getClouds() throws Exception { subjectLog(); List<Cloud> clouds = service.getClouds(); return Response.ok().entity(clouds).build(); }