@Path(value="result") public class ResultRestApi extends Object
Constructor and Description |
---|
ResultRestApi() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
buildErrorResponse(int status,
String... errors)
Generates an error response.
|
javax.ws.rs.core.Response |
getInfo(String aid) |
javax.ws.rs.core.Response |
getResponseState(String aid) |
javax.ws.rs.core.Response |
startRetrieval(String aid) |
@GET @Path(value="/{id}/status") @Produces(value="application/json") public javax.ws.rs.core.Response getResponseState(@PathParam(value="id") String aid)
@GET @Path(value="/{id}/info") @Produces(value="application/json") public javax.ws.rs.core.Response getInfo(@PathParam(value="id") String aid)
@GET @Path(value="/{id}/start") @Produces(value="application/json") public javax.ws.rs.core.Response startRetrieval(@PathParam(value="id") String aid)
protected javax.ws.rs.core.Response buildErrorResponse(int status, String... errors)
status
- the statuserrors
- the errorsCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.