@Path(value="/system/inputs/{inputId}/extractors") public class ExtractorsResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
ExtractorsResource(InputService inputService,
ActivityWriter activityWriter,
InputRegistry inputs,
com.codahale.metrics.MetricRegistry metricRegistry,
ExtractorFactory extractorFactory,
PersistedInputs persistedInputs) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String inputId,
CreateExtractorRequest cer) |
Map<String,Object> |
list(String inputId) |
void |
order(String inputPersistId,
OrderExtractorsRequest oer) |
Map<String,Object> |
single(String inputId,
String extractorId) |
void |
terminate(String inputId,
String extractorId) |
Map<String,Object> |
update(String inputId,
String extractorId,
CreateExtractorRequest cer) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public ExtractorsResource(InputService inputService, ActivityWriter activityWriter, InputRegistry inputs, com.codahale.metrics.MetricRegistry metricRegistry, ExtractorFactory extractorFactory, PersistedInputs persistedInputs)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="inputId") String inputId, @NotNull CreateExtractorRequest cer) throws NotFoundException
NotFoundException
@PUT @Timed @Consumes(value="application/json") @Produces(value="application/json") @Path(value="/{extractorId}") public Map<String,Object> update(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId, @NotNull CreateExtractorRequest cer) throws NotFoundException
NotFoundException
@GET @Timed @Produces(value="application/json") public Map<String,Object> list(@PathParam(value="inputId") String inputId) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="/{extractorId}") @Produces(value="application/json") public Map<String,Object> single(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="/{extractorId}") @Produces(value="application/json") public void terminate(@PathParam(value="inputId") String inputId, @PathParam(value="extractorId") String extractorId) throws NotFoundException
NotFoundException
@POST @Timed @Consumes(value="application/json") @Path(value="order") public void order(@PathParam(value="inputId") String inputPersistId, OrderExtractorsRequest oer) throws NotFoundException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.