class PigResource {

	@GET 
	@Path("/request/{requestId}")
	@Produces( {MediaType.APPLICATION_JSON} )
	public Response getInput(@PathParam("requestId") String requestId) throws IOException {
		logger.info("Request for getting request " + requestId);
		PigRequestParameters params = PigJobServerImpl
		    .getPigJobServer()
		    .getInputRequest(requestId);
		return Response.ok()
		    .entity(new Gson().toJson(params, PigRequestParameters.class))
		    .build();	
	}

}