@ApplicationScoped @Path(value="/reasoner/program") @Produces(value="application/json") public class ProgramWebService extends Object
Constructor and Description |
---|
ProgramWebService() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteProgram(String name) |
javax.ws.rs.core.Response |
getProgram(String name) |
javax.ws.rs.core.Response |
getProgramList() |
javax.ws.rs.core.Response |
updateProgram(String name,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
uploadProgram(String name,
javax.servlet.http.HttpServletRequest request) |
@POST @Path(value="/{name}") @Produces(value="text/plain") @Consumes(value="text/plain") public javax.ws.rs.core.Response uploadProgram(@PathParam(value="name") String name, @Context javax.servlet.http.HttpServletRequest request)
@PUT @Path(value="/{name}") @Produces(value="text/plain") @Consumes(value="text/plain") public javax.ws.rs.core.Response updateProgram(@PathParam(value="name") String name, @Context javax.servlet.http.HttpServletRequest request)
@GET @Path(value="/{name}") @Produces(value="text/plain") public javax.ws.rs.core.Response getProgram(@PathParam(value="name") String name)
@DELETE @Path(value="/{name}") public javax.ws.rs.core.Response deleteProgram(@PathParam(value="name") String name)
@GET @Path(value="/list") public javax.ws.rs.core.Response getProgramList()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.