@Path(value="json/submissionstatus")
public class JSONBasedSubmissionAndStatus
extends java.lang.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,
java.lang.String status,
java.lang.String email,
java.lang.String comment) |
javax.ws.rs.core.Response |
createSubmissionStatus(int id,
java.lang.String submissionDate,
java.lang.String status,
java.lang.String email,
java.lang.String comment) |
javax.ws.rs.core.Response |
defaultSubmission() |
javax.ws.rs.core.Response |
getSubmissionStatus(java.lang.String id) |
javax.ws.rs.core.Response |
updateSubmissionStatus(int id,
java.lang.String submissionDate,
java.lang.String statusDate,
java.lang.String status,
java.lang.String email,
java.lang.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") java.lang.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") java.lang.String status, @FormParam(value="Email") java.lang.String email, @FormParam(value="Comment") java.lang.String comment) throws java.io.IOException
java.io.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") java.lang.String submissionDate, @FormParam(value="Status") java.lang.String status, @FormParam(value="Email") java.lang.String email, @FormParam(value="Comment") java.lang.String comment) throws java.io.IOException
java.io.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") java.lang.String submissionDate, @FormParam(value="StatusDate") java.lang.String statusDate, @FormParam(value="Status") java.lang.String status, @FormParam(value="Email") java.lang.String email, @FormParam(value="Comment") java.lang.String comment) throws java.io.IOException
java.io.IOException
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.