public interface ResponsePredicateResult
ResponsePredicate
applied to an HttpResponse
.Modifier and Type | Method and Description |
---|---|
static ResponsePredicateResult |
failure(String message)
Creates a failed result.
|
String |
message()
The failure message.
|
HttpResponse<Buffer> |
response()
The
HttpResponse which has been tested. |
boolean |
succeeded()
Whether the result is a success or failure.
|
static ResponsePredicateResult |
success() |
static ResponsePredicateResult success()
static ResponsePredicateResult failure(String message)
message
- the failure descriptionboolean succeeded()
true
if the ResponsePredicate
was applied successfully, false otherwiseString message()
null
.HttpResponse<Buffer> response()
HttpResponse
which has been tested.null
after the result has been created, or the tested response for converters created
with ErrorConverter.createFullBody(Function)
Copyright © 2020 Eclipse. All rights reserved.