@Path(value="/filters/blacklist") public class BlacklistSourceResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
BlacklistSourceResource(FilterService filterService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(FilterDescription filterDescription) |
void |
delete(String filterId) |
FilterDescription |
get(String filterId) |
Set<FilterDescription> |
getAll() |
void |
update(String filterId,
FilterDescription filterEntry) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public BlacklistSourceResource(FilterService filterService)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@NotNull FilterDescription filterDescription) throws ValidationException
ValidationException
@GET @Timed @Produces(value="application/json") public Set<FilterDescription> getAll()
@GET @Timed @Path(value="/{filterId}") @Produces(value="application/json") public FilterDescription get(@PathParam(value="filterId")@NotEmpty String filterId) throws NotFoundException
NotFoundException
@PUT @Timed @Path(value="/{filterId}") @Consumes(value="application/json") public void update(@PathParam(value="filterId") String filterId, FilterDescription filterEntry) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@DELETE @Timed @Path(value="/{filterId}") public void delete(@PathParam(value="filterId") String filterId)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.