Class ValidatableResponse
- java.lang.Object
-
- io.vertx.reactivex.openapi.validation.ValidatableResponse
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class ValidatableResponse extends Object implements io.vertx.lang.rx.RxDelegate
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ValidatableResponse>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ValidatableResponse(ValidatableResponse delegate)ValidatableResponse(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidatableResponsecreate(int statusCode)Creates a newValidatableResponseobject based on the passed parameters.static ValidatableResponsecreate(int statusCode, Buffer body, String contentType)Creates a newValidatableResponseobject based on the passed parameters.static ValidatableResponsecreate(int statusCode, Map<String,String> headers)Creates a newValidatableResponseobject based on the passed parameters.static ValidatableResponsecreate(int statusCode, Map<String,String> headers, Buffer body, String contentType)Creates a newValidatableResponseobject based on the passed parameters.booleanequals(Object o)ResponseParametergetBody()StringgetContentType()ValidatableResponsegetDelegate()Map<String,ResponseParameter>getHeaders()intgetStatusCode()inthashCode()static ValidatableResponsenewInstance(ValidatableResponse arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ValidatableResponse> __TYPE_ARG
-
-
Constructor Detail
-
ValidatableResponse
public ValidatableResponse(ValidatableResponse delegate)
-
ValidatableResponse
public ValidatableResponse(Object delegate)
-
-
Method Detail
-
getDelegate
public ValidatableResponse getDelegate()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
public static ValidatableResponse create(int statusCode)
Creates a newValidatableResponseobject based on the passed parameters.- Parameters:
statusCode- The related status code- Returns:
- a
ValidatableResponseobject
-
create
public static ValidatableResponse create(int statusCode, Map<String,String> headers)
Creates a newValidatableResponseobject based on the passed parameters.- Parameters:
statusCode- The related status codeheaders- The related headers- Returns:
- a
ValidatableResponseobject
-
create
public static ValidatableResponse create(int statusCode, Buffer body, String contentType)
Creates a newValidatableResponseobject based on the passed parameters.- Parameters:
statusCode- The related status codebody- The related bodycontentType- The related content type- Returns:
- a
ValidatableResponseobject
-
create
public static ValidatableResponse create(int statusCode, Map<String,String> headers, Buffer body, String contentType)
Creates a newValidatableResponseobject based on the passed parameters.- Parameters:
statusCode- The related status codeheaders- The related headersbody- The related bodycontentType- The related content type- Returns:
- a
ValidatableResponseobject
-
getHeaders
public Map<String,ResponseParameter> getHeaders()
- Returns:
- the header parameters.
-
getBody
public ResponseParameter getBody()
- Returns:
- the body.
-
getContentType
public String getContentType()
-
getStatusCode
public int getStatusCode()
-
newInstance
public static ValidatableResponse newInstance(ValidatableResponse arg)
-
-