public interface ValidatableResponse
| Modifier and Type | Method and Description |
|---|---|
static ValidatableResponse |
create(int statusCode)
Creates a new
ValidatableResponse object based on the passed parameters. |
static ValidatableResponse |
create(int statusCode,
Buffer body,
String contentType)
Creates a new
ValidatableResponse object based on the passed parameters. |
static ValidatableResponse |
create(int statusCode,
Map<String,String> headers)
Creates a new
ValidatableResponse object based on the passed parameters. |
static ValidatableResponse |
create(int statusCode,
Map<String,String> headers,
Buffer body,
String contentType)
Creates a new
ValidatableResponse object based on the passed parameters. |
ResponseParameter |
getBody() |
String |
getContentType() |
Map<String,ResponseParameter> |
getHeaders() |
int |
getStatusCode() |
static ValidatableResponse create(int statusCode)
ValidatableResponse object based on the passed parameters.statusCode - The related status codeValidatableResponse objectstatic ValidatableResponse create(int statusCode, Map<String,String> headers)
ValidatableResponse object based on the passed parameters.statusCode - The related status codeheaders - The related headersValidatableResponse objectstatic ValidatableResponse create(int statusCode, Buffer body, String contentType)
ValidatableResponse object based on the passed parameters.statusCode - The related status codebody - The related bodycontentType - The related content typeValidatableResponse objectIllegalArgumentException - in case body is passed without contentType.static ValidatableResponse create(int statusCode, Map<String,String> headers, Buffer body, String contentType)
ValidatableResponse object based on the passed parameters.
statusCode - The related status codeheaders - The related headersbody - The related bodycontentType - The related content typeValidatableResponse objectIllegalArgumentException - in case body is passed without contentType.Map<String,ResponseParameter> getHeaders()
ResponseParameter getBody()
String getContentType()
int getStatusCode()
Copyright © 2023 Eclipse. All rights reserved.