Class ValidatedResponse
- java.lang.Object
-
- io.vertx.rxjava3.openapi.validation.ValidatedResponse
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class ValidatedResponse extends Object implements io.vertx.lang.rx.RxDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ValidatedResponse>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ValidatedResponse(ValidatedResponse delegate)ValidatedResponse(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ResponseParametergetBody()ValidatedResponsegetDelegate()Map<String,ResponseParameter>getHeaders()inthashCode()static ValidatedResponsenewInstance(ValidatedResponse arg)CompletablerxSend(HttpServerResponse serverResponse)Add all parameters from the validated response to the passed and send it.Completablesend(HttpServerResponse serverResponse)Add all parameters from the validated response to the passed and send it.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ValidatedResponse> __TYPE_ARG
-
-
Constructor Detail
-
ValidatedResponse
public ValidatedResponse(ValidatedResponse delegate)
-
ValidatedResponse
public ValidatedResponse(Object delegate)
-
-
Method Detail
-
getDelegate
public ValidatedResponse getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
getHeaders
public Map<String,ResponseParameter> getHeaders()
- Returns:
- the header parameters.
-
getBody
public ResponseParameter getBody()
- Returns:
- the body.
-
send
public Completable send(HttpServerResponse serverResponse)
Add all parameters from the validated response to the passed and send it.- Parameters:
serverResponse- The related response- Returns:
- A succeeded Future when the response was sent successfully, otherwise a failed one.
-
rxSend
public Completable rxSend(HttpServerResponse serverResponse)
Add all parameters from the validated response to the passed and send it.- Parameters:
serverResponse- The related response- Returns:
- A succeeded Future when the response was sent successfully, otherwise a failed one.
-
newInstance
public static ValidatedResponse newInstance(ValidatedResponse arg)
-
-