@Path(value="/system/radios") @Consumes(value="application/json") @Produces(value="application/json") public class RadiosResource extends RestResource
objectMapper, userService| Constructor and Description |
|---|
RadiosResource(NodeService nodeService,
InputService inputService) |
| Modifier and Type | Method and Description |
|---|---|
PersistedInputsSummaryResponse |
persistedInputs(String radioId) |
void |
ping(String radioId,
PingRequest pr) |
RadioSummary |
radio(String radioId) |
Map<String,Object> |
radios() |
javax.ws.rs.core.Response |
registerInput(String radioId,
RegisterInputRequest rir) |
void |
unregisterInput(String radioId,
String inputId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public RadiosResource(NodeService nodeService, InputService inputService)
@GET
@Timed
@Path(value="/{radioId}")
public RadioSummary radio(@PathParam(value="radioId")
String radioId)
@POST
@Timed
@Path(value="/{radioId}/inputs")
public javax.ws.rs.core.Response registerInput(@PathParam(value="radioId")
String radioId,
@NotNull
RegisterInputRequest rir)
throws ValidationException
ValidationException@DELETE
@Timed
@Path(value="/{radioId}/inputs/{inputId}")
public void unregisterInput(@PathParam(value="radioId")
String radioId,
@PathParam(value="inputId")
String inputId)
throws NotFoundException
NotFoundException@GET
@Timed
@Path(value="/{radioId}/inputs")
public PersistedInputsSummaryResponse persistedInputs(@PathParam(value="radioId")
String radioId)
@PUT
@Timed
@Path(value="/{radioId}/ping")
public void ping(@PathParam(value="radioId")
String radioId,
@NotNull
PingRequest pr)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.