Class ValidatableRequest
java.lang.Object
io.vertx.mutiny.openapi.validation.ValidatedRequest
io.vertx.mutiny.openapi.validation.ValidatableRequest
- All Implemented Interfaces:
MutinyDelegate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidatableRequest(io.vertx.openapi.validation.ValidatableRequest delegate) ValidatableRequest(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanio.vertx.openapi.validation.ValidatableRequestinthashCode()static ValidatableRequestnewInstance(io.vertx.openapi.validation.ValidatableRequest arg) static io.smallrye.mutiny.Uni<ValidatableRequest>of(HttpServerRequest request, Operation operation) Creates a newValidatableRequestobject based on the passed and .static ValidatableRequestofAndAwait(HttpServerRequest request, Operation operation) static voidofAndForget(HttpServerRequest request, Operation operation) Variant ofof(io.vertx.mutiny.core.http.HttpServerRequest,io.vertx.mutiny.openapi.contract.Operation)that ignores the result of the operation.toString()Methods inherited from class io.vertx.mutiny.openapi.validation.ValidatedRequest
getBody, getCookies, getHeaders, getPathParameters, getQuery, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ValidatableRequest
public ValidatableRequest(io.vertx.openapi.validation.ValidatableRequest delegate) -
ValidatableRequest
-
-
Method Details
-
getDelegate
public io.vertx.openapi.validation.ValidatableRequest getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classValidatedRequest- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toStringin classValidatedRequest
-
equals
- Overrides:
equalsin classValidatedRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classValidatedRequest
-
of
@CheckReturnValue public static io.smallrye.mutiny.Uni<ValidatableRequest> of(HttpServerRequest request, Operation operation) Creates a newValidatableRequestobject based on the passed and .Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
request- The related requestoperation- The related operation- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
ofAndAwait
Blocking variant ofof(io.vertx.mutiny.core.http.HttpServerRequest,io.vertx.mutiny.openapi.contract.Operation).This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
request- The related requestoperation- The related operation- Returns:
- the ValidatableRequest instance produced by the operation.
-
ofAndForget
Variant ofof(io.vertx.mutiny.core.http.HttpServerRequest,io.vertx.mutiny.openapi.contract.Operation)that ignores the result of the operation.This method subscribes on the result of
of(io.vertx.mutiny.core.http.HttpServerRequest,io.vertx.mutiny.openapi.contract.Operation), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromof(io.vertx.mutiny.core.http.HttpServerRequest,io.vertx.mutiny.openapi.contract.Operation)but you don't need to compose it with other operations.- Parameters:
request- The related requestoperation- The related operation
-
getContentType
-
newInstance
-