@Path(value="/streams/{streamid}/rules") public class StreamRuleResource extends RestResource
objectMapper, serverStatus, userService
Constructor and Description |
---|
StreamRuleResource(StreamRuleService streamRuleService,
StreamService streamService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String streamId,
CreateStreamRuleRequest cr) |
void |
delete(String streamid,
String streamRuleId) |
StreamRuleListResponse |
get(String streamid) |
StreamRule |
get(String streamid,
String streamRuleId) |
SingleStreamRuleSummaryResponse |
update(String streamid,
String streamRuleId,
CreateStreamRuleRequest cr) |
SingleStreamRuleSummaryResponse |
updateDeprecated(String streamid,
String streamRuleId,
CreateStreamRuleRequest cr)
Deprecated.
|
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint
@Inject public StreamRuleResource(StreamRuleService streamRuleService, StreamService streamService)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="streamid") String streamId, @NotNull CreateStreamRuleRequest cr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@PUT @Path(value="/{streamRuleId}") @Timed @Consumes(value="application/json") @Produces(value="application/json") public SingleStreamRuleSummaryResponse update(@PathParam(value="streamid") String streamid, @PathParam(value="streamRuleId") String streamRuleId, @NotNull CreateStreamRuleRequest cr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@POST @Path(value="/{streamRuleId}") @Timed @Consumes(value="application/json") @Produces(value="application/json") @Deprecated public SingleStreamRuleSummaryResponse updateDeprecated(@PathParam(value="streamid") String streamid, @PathParam(value="streamRuleId") String streamRuleId, @NotNull CreateStreamRuleRequest cr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@GET @Timed @Produces(value="application/json") public StreamRuleListResponse get(@PathParam(value="streamid") String streamid) throws NotFoundException
NotFoundException
@GET @Path(value="/{streamRuleId}") @Timed @Produces(value="application/json") public StreamRule get(@PathParam(value="streamid") String streamid, @PathParam(value="streamRuleId") String streamRuleId) throws NotFoundException
NotFoundException
@DELETE @Path(value="/{streamRuleId}") @Timed public void delete(@PathParam(value="streamid") String streamid, @PathParam(value="streamRuleId")@NotEmpty String streamRuleId) throws NotFoundException
NotFoundException
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.