Package ai.preferred.venom.validator
Interface Validator
-
- All Known Implementing Classes:
EmptyContentValidator
,MimeTypeValidator
,PipelineValidator
,StatusOkValidator
public interface Validator
- Author:
- Maksim Tkachenko, Truong Quoc Tuan, Ween Jiann Lee
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Validator.Status
The allowed return status of validation.
-
Field Summary
Fields Modifier and Type Field Description static Validator
ALWAYS_VALID
A validator that always return valid.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Validator.Status
isValid(@NotNull Request request, @NotNull Response response)
Method will be called when a response need validation.
-
-
-
Field Detail
-
ALWAYS_VALID
static final Validator ALWAYS_VALID
A validator that always return valid.
-
-
Method Detail
-
isValid
Validator.Status isValid(@NotNull @NotNull Request request, @NotNull @NotNull Response response)
Method will be called when a response need validation.- Parameters:
request
- request sent to fetch a responseresponse
- response fetched- Returns:
- the status of validation
-
-