Class RegexTesterResource

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

@RequiresAuthentication @Path("/tools/regex_tester") public class RegexTesterResource extends RestResource
  • Constructor Details

    • RegexTesterResource

      public RegexTesterResource()
  • Method Details

    • regexTester

      @GET @Timed @Produces("application/json") public RegexTesterResponse regexTester(@QueryParam("regex") @NotEmpty @NotEmpty String regex, @QueryParam("string") @NotNull @NotNull String string)
    • testRegex

      @POST @Timed @Consumes("application/json") @Produces("application/json") public RegexTesterResponse testRegex(@Valid @NotNull @Valid @NotNull RegexTestRequest regexTestRequest)
    • validateRegex

      @GET @Path("/validate") @Timed @Produces("application/json") public RegexValidationResponse validateRegex(@QueryParam("regex") @NotEmpty @NotEmpty String regex)