Package io.vertx.ext.web.validation
Interface RequestPredicate
-
- All Superinterfaces:
java.util.function.Function<RoutingContext,RequestPredicateResult>
public interface RequestPredicate extends java.util.function.Function<RoutingContext,RequestPredicateResult>
Request predicate
-
-
Field Summary
Fields Modifier and Type Field Description static RequestPredicate
BODY_REQUIRED
Request predicate that checks if body exists or not
-
Method Summary
Static Methods Modifier and Type Method Description static RequestPredicate
multipartFileUploadExists(String propertyName, String contentTypePattern)
Generate request predicate that checks if a particular multipart file upload withpropertyName
and matchingcontentTypePattern
exists
-
-
-
Field Detail
-
BODY_REQUIRED
static final RequestPredicate BODY_REQUIRED
Request predicate that checks if body exists or not
-
-
Method Detail
-
multipartFileUploadExists
static RequestPredicate multipartFileUploadExists(String propertyName, String contentTypePattern)
Generate request predicate that checks if a particular multipart file upload withpropertyName
and matchingcontentTypePattern
exists- Parameters:
propertyName
-contentTypePattern
-- Returns:
-
-