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