@Service @Path(value="/api/action") public class ServletManager extends Object
| Constructor and Description |
|---|
ServletManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
createInstance(String json)
Create a new service based on the given configuration
|
String |
deleteService(String id) |
String |
startService(String id) |
String |
stopService(String id) |
String |
test() |
String |
testCreate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
TODO Somehow we need to create servlets from a configurable set of classes.
|
@GET @Produces(value="application/json") @Path(value="/test") public String test()
@GET @Produces(value="application/json") @Path(value="/testCreate") public String testCreate(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
@POST @Produces(value="application/json") @Path(value="/createService") public String createInstance(@FormParam(value="data") String json)
json - @POST @Produces(value="application/json") @Path(value="/deleteService") public String deleteService(@FormParam(value="id") String id)
@POST @Produces(value="application/json") @Path(value="/startService") public String startService(@FormParam(value="id") String id)
Copyright © 2015. All rights reserved.