@Path(value="/system/inputs") public class InputsResource extends RestResource
objectMapper, serverStatus, userService| Constructor and Description |
|---|
InputsResource(InputService inputService,
InputRegistry inputRegistry,
ActivityWriter activityWriter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(java.lang.String body) |
java.lang.String |
info(java.lang.String inputType) |
javax.ws.rs.core.Response |
launchExisting(java.lang.String inputId) |
java.lang.String |
list() |
javax.ws.rs.core.Response |
restart(java.lang.String inputId) |
java.lang.String |
single(java.lang.String inputId) |
javax.ws.rs.core.Response |
stop(java.lang.String inputId) |
javax.ws.rs.core.Response |
terminate(java.lang.String inputId) |
java.lang.String |
types() |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, json, loadObjectId, page, restrictToMaster, setPrettyPrint@Inject public InputsResource(InputService inputService, InputRegistry inputRegistry, ActivityWriter activityWriter)
@GET
@Timed
@Produces(value="application/json")
@Path(value="/{inputId}")
public java.lang.String single(@PathParam(value="inputId")
java.lang.String inputId)
@GET @Timed @Produces(value="application/json") public java.lang.String list()
@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(java.lang.String body)
throws ValidationException
ValidationException@GET @Timed @Path(value="/types") @Produces(value="application/json") public java.lang.String types()
@DELETE
@Timed
@Path(value="/{inputId}")
@Produces(value="application/json")
public javax.ws.rs.core.Response terminate(@PathParam(value="inputId")
java.lang.String inputId)
@POST
@Timed
@Path(value="/{inputId}/launch")
@Produces(value="application/json")
public javax.ws.rs.core.Response launchExisting(@PathParam(value="inputId")
java.lang.String inputId)
@POST
@Timed
@Path(value="/{inputId}/stop")
public javax.ws.rs.core.Response stop(@PathParam(value="inputId")
java.lang.String inputId)
@POST
@Timed
@Path(value="/{inputId}/restart")
public javax.ws.rs.core.Response restart(@PathParam(value="inputId")
java.lang.String inputId)
@GET
@Timed
@Path(value="/types/{inputType}")
@Produces(value="application/json")
public java.lang.String info(@PathParam(value="inputType")
java.lang.String inputType)
Copyright © 2012-2014 TORCH GmbH. All Rights Reserved.