/** * Gets job info. * * @param id the job identifier associated with this instance. * @return a response which includes the info of the job. * @since 1.0 */ @GET @Path("/jobs/{jobid}") @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) public Response getJob( @Context final HttpServletRequest request, @PathParam("jobid") final Integer jobid) { LOGGER.debug(MessageCatalog._00025_GET_JOB_REQUEST); if (jobid == null) { LOGGER.error(MessageCatalog._00022_MISSING_INPUT_PARAM, "jobid"); return Response.status(Status.BAD_REQUEST).build(); } final DBConnectionManager dbConn = (DBConnectionManager) context.getAttribute("db"); final Job job = dbConn.getJob(jobid); return Response.status(Response.Status.ACCEPTED).entity(job).build(); }