Class RegexReplaceTesterResource

java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.tools.RegexReplaceTesterResource

@RequiresAuthentication @Path("/tools/regex_replace_tester") public class RegexReplaceTesterResource extends RestResource
  • Constructor Details

    • RegexReplaceTesterResource

      public RegexReplaceTesterResource()
  • Method Details

    • regexTester

      @GET @Timed @Produces("application/json") public RegexReplaceTesterResponse regexTester(@QueryParam("regex") @NotEmpty @NotEmpty String regex, @QueryParam("replacement") @NotNull @NotNull String replacement, @QueryParam("replace_all") @DefaultValue("false") boolean replaceAll, @QueryParam("string") @NotNull @NotNull String string)
    • testRegex

      @POST @Timed @Consumes("application/json") @Produces("application/json") public RegexReplaceTesterResponse testRegex(@Valid @NotNull @Valid @NotNull RegexReplaceTestRequest r)