public interface ResponseValidator
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResponseValidator.Status
The allowed return status of validation
|
| Modifier and Type | Field and Description |
|---|---|
static ResponseValidator |
EMPTY_VALIDATOR |
| Modifier and Type | Method and Description |
|---|---|
ResponseValidator.Status |
validate(@NotNull Request request,
@NotNull Response response)
Method will be called when a response need validation
|
static ResponseValidator.Status |
validOrAlternative(@NotNull boolean boo,
@NotNull ResponseValidator.Status alternative)
A help to return valid where boo is true or the alternative
if false
|
static final ResponseValidator EMPTY_VALIDATOR
static ResponseValidator.Status validOrAlternative(@NotNull @NotNull boolean boo, @NotNull @NotNull ResponseValidator.Status alternative)
boo - a boolean for a queryalternative - the status to return if boo is falseResponseValidator.Status validate(@NotNull @NotNull Request request, @NotNull @NotNull Response response)
request - request sent to fetch a responseresponse - response fetchedCopyright © 2018. All rights reserved.