@Path(value="json/delivery") public class JSONBasedDelivery extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JSONBasedDelivery() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDelivery(String logIdentifier,
String ver,
String name,
String startTime,
String stopTime,
String src,
String tgt,
String dueD) |
javax.ws.rs.core.Response |
defaultDelivery() |
javax.ws.rs.core.Response |
delivery(String id,
String version) |
javax.ws.rs.core.Response |
updateDelivery(String logIdentifier,
String delIdentifier,
String ver,
String name,
String startTime,
String stopTime,
String src,
String tgt,
String dueD) |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response defaultDelivery() throws org.json.JSONException
org.json.JSONException
@Path(value="{id : (.+)?}/{version : (.+)?}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response delivery(@PathParam(value="id") String id, @PathParam(value="version") String version) throws org.json.JSONException
id
- version
- org.json.JSONException
@POST @Path(value="/add") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createDelivery(@FormParam(value="Log_Identifier") String logIdentifier, @FormParam(value="Version") String ver, @FormParam(value="Name") String name, @FormParam(value="Start_Time") String startTime, @FormParam(value="Stop_Time") String stopTime, @FormParam(value="Source") String src, @FormParam(value="Target") String tgt, @FormParam(value="Due_Date") String dueD) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateDelivery(@FormParam(value="Log_Identifier") String logIdentifier, @FormParam(value="Del_Identifier") String delIdentifier, @FormParam(value="Version") String ver, @FormParam(value="Name") String name, @FormParam(value="Start_Time") String startTime, @FormParam(value="Stop_Time") String stopTime, @FormParam(value="Source") String src, @FormParam(value="Target") String tgt, @FormParam(value="Due_Date") String dueD) throws IOException
IOException
Copyright © 2019. All rights reserved.