Class StreamOutputResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.streams.outputs.StreamOutputResource
@RequiresAuthentication
@Path("/streams/{streamid}/outputs")
public class StreamOutputResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionStreamOutputResource
(OutputService outputService, StreamService streamService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
add
(String streamid, @Valid @NotNull AddOutputRequest aor) void
Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
StreamOutputResource
-
-
Method Details
-
get
@GET @Timed @Produces("application/json") public OutputListResponse get(@PathParam("streamid") String streamid) throws NotFoundException - Throws:
NotFoundException
-
get
@GET @Path("/{outputId}") @Timed @Produces("application/json") public OutputSummary get(@PathParam("streamid") String streamid, @PathParam("outputId") String outputId) throws NotFoundException - Throws:
NotFoundException
-
add
@POST @Timed @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response add(@PathParam("streamid") String streamid, @Valid @NotNull @Valid @NotNull AddOutputRequest aor) throws NotFoundException - Throws:
NotFoundException
-
remove
@DELETE @Path("/{outputId}") @Timed @Produces("application/json") public void remove(@PathParam("streamid") String streamid, @PathParam("outputId") String outputId) throws NotFoundException - Throws:
NotFoundException
-