@Path(value="json/submissionstatus") public class JSONBasedSubmissionAndStatus extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JSONBasedSubmissionAndStatus() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createSubmissionAndStatus(int id,
String status,
String email,
String comment) |
javax.ws.rs.core.Response |
createSubmissionStatus(int id,
String submissionDate,
String status,
String email,
String comment) |
javax.ws.rs.core.Response |
defaultSubmission() |
javax.ws.rs.core.Response |
getSubmissionStatus(String id) |
javax.ws.rs.core.Response |
updateSubmissionStatus(int id,
String submissionDate,
String statusDate,
String status,
String email,
String comment) |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response defaultSubmission() throws org.json.JSONException
org.json.JSONException
@Path(value="{id}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getSubmissionStatus(@PathParam(value="id") String id) throws org.json.JSONException
org.json.JSONException
@POST @Path(value="/add") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createSubmissionAndStatus(@FormParam(value="Delivery_ID") int id, @FormParam(value="Status") String status, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
@POST @Path(value="/addstatus") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createSubmissionStatus(@FormParam(value="Delivery_ID") int id, @FormParam(value="SubmissionDate") String submissionDate, @FormParam(value="Status") String status, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateSubmissionStatus(@FormParam(value="Delivery_ID") int id, @FormParam(value="SubmissionDate") String submissionDate, @FormParam(value="StatusDate") String statusDate, @FormParam(value="Status") String status, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
Copyright © 2019. All rights reserved.