Class RequestPredicate
java.lang.Object
io.vertx.mutiny.ext.web.validation.RequestPredicate
- All Implemented Interfaces:
MutinyDelegate,Function<RoutingContext,RequestPredicateResult>
public class RequestPredicate
extends Object
implements Function<RoutingContext,RequestPredicateResult>, MutinyDelegate
Request predicate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
RequestPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<RequestPredicate>static final RequestPredicateRequest predicate that checks if body exists or not -
Constructor Summary
ConstructorsConstructorDescriptionRequestPredicate(io.vertx.ext.web.validation.RequestPredicate delegate) Create a new instance ofRequestPredicatedelegating to the given (non-null) instance ofRequestPredicate.RequestPredicate(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionapply(RoutingContext item) booleanio.vertx.ext.web.validation.RequestPredicateGet the delegate instance.inthashCode()static RequestPredicatemultipartFileUploadExists(String propertyName, String contentTypePattern) Generate request predicate that checks if a particular multipart file upload withpropertyNameand matchingcontentTypePatternexistsstatic RequestPredicatenewInstance(io.vertx.ext.web.validation.RequestPredicate delegate) Creates a new instance of theRequestPredicate.toString()
-
Field Details
-
BODY_REQUIRED
Request predicate that checks if body exists or not -
__TYPE_ARG
-
-
Constructor Details
-
RequestPredicate
public RequestPredicate(io.vertx.ext.web.validation.RequestPredicate delegate) Create a new instance ofRequestPredicatedelegating to the given (non-null) instance ofRequestPredicate. -
RequestPredicate
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<RoutingContext,RequestPredicateResult>
-
getDelegate
public io.vertx.ext.web.validation.RequestPredicate getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
multipartFileUploadExists
public static RequestPredicate multipartFileUploadExists(String propertyName, String contentTypePattern) Generate request predicate that checks if a particular multipart file upload withpropertyNameand matchingcontentTypePatternexists- Parameters:
propertyName-contentTypePattern-- Returns:
-
newInstance
Creates a new instance of theRequestPredicate. -
hashCode
public int hashCode() -
equals
-
toString
-