Class SystemNotificationRenderResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog.events.processor.systemnotification.SystemNotificationRenderResource
@Path("/system/notification/message")
@Consumes("application/json")
@Produces({"text/html","text/plain"})
@RequiresAuthentication
public class SystemNotificationRenderResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionSystemNotificationRenderResource
(SystemNotificationRenderService systemNotificationRenderService) -
Method Summary
Modifier and TypeMethodDescriptionrenderHtml
(Notification.Type type, TemplateRenderRequest request) renderHtmlWithKey
(Notification.Type type, String key, TemplateRenderRequest request) renderPlainText
(Notification.Type type, TemplateRenderRequest request) renderPlainTextWithKey
(Notification.Type type, String key, TemplateRenderRequest request) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
SystemNotificationRenderResource
@Inject public SystemNotificationRenderResource(SystemNotificationRenderService systemNotificationRenderService)
-
-
Method Details
-
renderHtml
@POST @Path("/html/{type}") @Produces("application/json") public TemplateRenderResponse renderHtml(@PathParam("type") Notification.Type type, TemplateRenderRequest request) -
renderHtmlWithKey
@POST @Path("/html/{type}/{key}") @Produces("application/json") public TemplateRenderResponse renderHtmlWithKey(@PathParam("type") Notification.Type type, @PathParam("key") String key, TemplateRenderRequest request) -
renderPlainText
@POST @Path("/plaintext/{type}") @Produces("application/json") public TemplateRenderResponse renderPlainText(@PathParam("type") Notification.Type type, TemplateRenderRequest request) -
renderPlainTextWithKey
@POST @Path("/plaintext/{type}/{key}") @Produces("application/json") public TemplateRenderResponse renderPlainTextWithKey(@PathParam("type") Notification.Type type, @PathParam("key") String key, TemplateRenderRequest request)
-