@Path(value="json/certificationstatus") public class JSONBasedCertificationStatus extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JSONBasedCertificationStatus() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
certificationStatus(String id,
String version,
boolean latest) |
javax.ws.rs.core.Response |
createCertificationStatus(String logicalIdentifier,
String ver,
String status,
String email,
String comment) |
javax.ws.rs.core.Response |
defaultCertificationStatus() |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response defaultCertificationStatus() throws org.json.JSONException
org.json.JSONException
@Path(value="{id : (.+)?}/{version : (.+)?}/{latest}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response certificationStatus(@PathParam(value="id") String id, @PathParam(value="version") String version, @PathParam(value="latest") boolean latest) 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 createCertificationStatus(@FormParam(value="LogicalIdentifier") String logicalIdentifier, @FormParam(value="Version") String ver, @FormParam(value="Status") String status, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
Copyright © 2019. All rights reserved.