Class ValidatedResponse
java.lang.Object
io.vertx.mutiny.openapi.validation.ValidatedResponse
- All Implemented Interfaces:
- MutinyDelegate
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionValidatedResponse(io.vertx.openapi.validation.ValidatedResponse delegate) ValidatedResponse(Object delegate) 
- 
Method SummaryModifier 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- 
ValidatedResponsepublic ValidatedResponse(io.vertx.openapi.validation.ValidatedResponse delegate) 
- 
ValidatedResponse
 
- 
- 
Method Details- 
getDelegatepublic io.vertx.openapi.validation.ValidatedResponse getDelegate()- Specified by:
- getDelegatein interface- MutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
getHeaders- Returns:
- the header parameters.
 
- 
getBody- Returns:
- the body.
 
- 
sendAdd 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.
 
- 
sendAndAwaitBlocking 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.
 
- 
sendAndForgetVariant 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
 
-