Class ValidatedResponse
- java.lang.Object
-
- io.vertx.reactivex.openapi.validation.ValidatedResponse
-
public class ValidatedResponse extends Object
-
-
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 boolean
equals(Object o)
ResponseParameter
getBody()
ValidatedResponse
getDelegate()
Map<String,ResponseParameter>
getHeaders()
int
hashCode()
static ValidatedResponse
newInstance(ValidatedResponse arg)
Completable
rxSend(HttpServerResponse serverResponse)
Add all parameters from the validated response to the passed and send it.Future<Void>
send(HttpServerResponse serverResponse)
Add all parameters from the validated response to the passed and send it.String
toString()
-
-
-
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()
-
getHeaders
public Map<String,ResponseParameter> getHeaders()
- Returns:
- the header parameters.
-
getBody
public ResponseParameter getBody()
- Returns:
- the body.
-
send
public Future<Void> 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)
-
-