ProviderRest extends AbstractSLARest { @GET @Path("{uuid}") @Produces(MediaType.APPLICATION_XML) public Response getProviderByUuid(@PathParam("uuid") String provider_uuid) throws IOException, JAXBException { logger.debug("StartOf getProviderByUuid - REQUEST for /providers/" + provider_uuid); try { ProviderHelper providerRestService = getProviderHelper(); String serializedProvider = providerRestService.getProviderByUUID(provider_uuid); if (serializedProvider!=null){ logger.debug("EndOf getProviderByUuid"); return buildResponse(200, serializedProvider); }else{ logger.debug("EndOf getProviderByUuid"); return buildResponse(404, printError(404, "There is no provider with uuid " + provider_uuid + " in the SLA Repository Database")); } } catch (HelperException e) { logger.info("getProviderByUuid exception:"+e.getMessage()); return buildResponse(e); } } ProviderRest(); @GET @Produces(MediaType.APPLICATION_XML) Response getProviders(); @GET @Path("{uuid}") @Produces(MediaType.APPLICATION_XML) Response getProviderByUuid(@PathParam("uuid") String provider_uuid); @POST @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_XML) Response createProvider(@Context HttpHeaders hh,@Context UriInfo uriInfo, String payload);  }
@Test public void getProviderByUuid() { assert(true); }