Class RegexTesterResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.tools.RegexTesterResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionregexTester
(@NotEmpty String regex, @NotNull String string) testRegex
(@Valid @NotNull RegexTestRequest regexTestRequest) validateRegex
(@NotEmpty String regex) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
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)
-