Class ValidatedResponse
java.lang.Object
io.vertx.mutiny.openapi.validation.ValidatedResponse
- All Implemented Interfaces:
MutinyDelegate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidatedResponse(io.vertx.openapi.validation.ValidatedResponse delegate) ValidatedResponse(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()io.vertx.openapi.validation.ValidatedResponseinthashCode()static ValidatedResponsenewInstance(io.vertx.openapi.validation.ValidatedResponse arg) io.smallrye.mutiny.Uni<Void>send(HttpServerResponse serverResponse) Add all parameters from the validated response to the passed and send it.sendAndAwait(HttpServerResponse serverResponse) Blocking variant ofsend(io.vertx.mutiny.core.http.HttpServerResponse).voidsendAndForget(HttpServerResponse serverResponse) Variant ofsend(io.vertx.mutiny.core.http.HttpServerResponse)that ignores the result of the operation.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ValidatedResponse
public ValidatedResponse(io.vertx.openapi.validation.ValidatedResponse delegate) -
ValidatedResponse
-
-
Method Details
-
getDelegate
public io.vertx.openapi.validation.ValidatedResponse getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
getHeaders
- Returns:
- the header parameters.
-
getBody
- Returns:
- the body.
-
send
Add all parameters from the validated response to the passed and send it.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
serverResponse- The related response- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
sendAndAwait
Blocking variant ofsend(io.vertx.mutiny.core.http.HttpServerResponse).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:
serverResponse- The related response- Returns:
- the Void instance produced by the operation.
-
sendAndForget
Variant ofsend(io.vertx.mutiny.core.http.HttpServerResponse)that ignores the result of the operation.This method subscribes on the result of
send(io.vertx.mutiny.core.http.HttpServerResponse), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromsend(io.vertx.mutiny.core.http.HttpServerResponse)but you don't need to compose it with other operations.- Parameters:
serverResponse- The related response
-
newInstance
-