Class ResponsePredicateResult
- java.lang.Object
-
- io.vertx.mutiny.ext.web.client.predicate.ResponsePredicateResult
-
public class ResponsePredicateResult extends Object
Represents the outcome of aResponsePredicate
applied to an . NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ResponsePredicateResult>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ResponsePredicateResult(io.vertx.ext.web.client.predicate.ResponsePredicateResult delegate)
ResponsePredicateResult(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static ResponsePredicateResult
failure(String message)
io.vertx.ext.web.client.predicate.ResponsePredicateResult
getDelegate()
int
hashCode()
String
message()
static ResponsePredicateResult
newInstance(io.vertx.ext.web.client.predicate.ResponsePredicateResult arg)
HttpResponse<Buffer>
response()
boolean
succeeded()
static ResponsePredicateResult
success()
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ResponsePredicateResult> __TYPE_ARG
-
-
Constructor Detail
-
ResponsePredicateResult
public ResponsePredicateResult(io.vertx.ext.web.client.predicate.ResponsePredicateResult delegate)
-
ResponsePredicateResult
public ResponsePredicateResult(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.client.predicate.ResponsePredicateResult getDelegate()
-
success
public static ResponsePredicateResult success()
- Returns:
- a successful result
-
failure
public static ResponsePredicateResult failure(String message)
- Parameters:
message
- the failure description- Returns:
-
succeeded
public boolean succeeded()
- Returns:
true
if theResponsePredicate
was applied successfully, false otherwise
-
message
public String message()
- Returns:
-
response
public HttpResponse<Buffer> response()
- Returns:
null
after the result has been created, or the tested response for converters created withErrorConverter.createFullBody(java.util.function.Function<io.vertx.mutiny.ext.web.client.predicate.ResponsePredicateResult, java.lang.Throwable>)
-
newInstance
public static ResponsePredicateResult newInstance(io.vertx.ext.web.client.predicate.ResponsePredicateResult arg)
-
-