@Path(value="/system/inputs") @Produces(value="application/json") @Consumes(value="application/json") public class InputsResource extends RestResource
objectMapper, userService| Constructor and Description |
|---|
InputsResource(InputService inputService,
MessageInputFactory messageInputFactory) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(InputCreateRequest lr) |
InputSummary |
get(String inputId) |
InputsList |
list() |
void |
terminate(String inputId) |
javax.ws.rs.core.Response |
update(InputCreateRequest lr,
String inputId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public InputsResource(InputService inputService, MessageInputFactory messageInputFactory)
@GET
@Timed
@Path(value="/{inputId}")
public InputSummary get(@PathParam(value="inputId")
String inputId)
throws NotFoundException
NotFoundException@GET @Timed public InputsList list()
@POST
@Timed
public javax.ws.rs.core.Response create(@NotNull
InputCreateRequest lr)
throws ValidationException
ValidationException@DELETE
@Timed
@Path(value="/{inputId}")
public void terminate(@PathParam(value="inputId")
String inputId)
throws NotFoundException
NotFoundException@PUT
@Timed
@Path(value="/{inputId}")
public javax.ws.rs.core.Response update(@NotNull
InputCreateRequest lr,
@PathParam(value="inputId")
String inputId)
throws NotFoundException,
NoSuchInputTypeException,
ConfigurationException,
ValidationException
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.