Uses of Class
io.helidon.webserver.RequestPredicate
-
Uses of RequestPredicate in io.helidon.webserver
Modifier and TypeMethodDescriptionOnly accept request that accepts any of the given content types.Accept requests only when it accepts any of the given content types.RequestPredicate.and
(Predicate<ServerRequest> predicate) Returns a composed predicate that represents a logical AND expression between this predicate and another predicate.RequestPredicate.containsCookie
(String name) Accept request only when the specified cookie exists.RequestPredicate.containsCookie
(String name, String value) Accept requests only when the specified cookie contains a given value.RequestPredicate.containsCookie
(String name, Predicate<String> predicate) Accept requests only when the specified cookie is valid.RequestPredicate.containsHeader
(String name) Accept requests only when the specified header name exists.RequestPredicate.containsHeader
(String name, String value) Accept requests only when the specified header contains a given value.RequestPredicate.containsHeader
(String name, Predicate<String> predicate) Accept requests only when the specified header is valid.RequestPredicate.containsQueryParameter
(String name) Accept requests only when the specified query parameter exists.RequestPredicate.containsQueryParameter
(String name, String value) Accept requests only when the specified query parameter contains a given value.RequestPredicate.containsQueryParameter
(String name, Predicate<String> predicate) Accept requests only when the specified query parameter is valid.static RequestPredicate
RequestPredicate.create()
Creates new emptyRequestPredicate
instance.RequestPredicate.hasContentType
(MediaType... contentType) Only accept requests with any of the given content types.RequestPredicate.hasContentType
(String... contentType) Only accept requests with any of the given content types.RequestPredicate.isOfMethod
(Http.Method... methods) Accepts only requests with one of specified HTTP methods.RequestPredicate.isOfMethod
(String... methods) Accepts only requests with one of specified HTTP methods.RequestPredicate.negate()
Return a predicate that represents the logical negation of this predicate.RequestPredicate.or
(Predicate<ServerRequest> predicate) Returns a composed predicate that represents a logical OR expression between this predicate and another predicate.