public class ResponsePredicateResultImpl extends Object implements ResponsePredicateResult
| Modifier and Type | Field and Description |
|---|---|
static ResponsePredicateResultImpl |
SUCCESS |
| Constructor and Description |
|---|
ResponsePredicateResultImpl(boolean passed,
String message) |
| Modifier and Type | Method and Description |
|---|---|
String |
message()
The failure message.
|
HttpResponse<Buffer> |
response()
The
HttpResponse which has been tested. |
ResponsePredicateResultImpl |
setHttpResponse(HttpResponse<Buffer> httpResponse) |
boolean |
succeeded()
Whether the result is a success or failure.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfailure, successpublic static final ResponsePredicateResultImpl SUCCESS
public ResponsePredicateResultImpl(boolean passed,
String message)
public boolean succeeded()
ResponsePredicateResultsucceeded in interface ResponsePredicateResulttrue if the ResponsePredicate was applied successfully, false otherwisepublic String message()
ResponsePredicateResultnull.message in interface ResponsePredicateResultpublic HttpResponse<Buffer> response()
ResponsePredicateResultHttpResponse which has been tested.response in interface ResponsePredicateResultnull after the result has been created, or the tested response for converters created
with ErrorConverter.createFullBody(Function)public ResponsePredicateResultImpl setHttpResponse(HttpResponse<Buffer> httpResponse)
Copyright © 2020. All rights reserved.