Uses of Interface
ai.preferred.venom.validator.Validator
-
Packages that use Validator Package Description ai.preferred.venom ai.preferred.venom.fetcher ai.preferred.venom.validator -
-
Uses of Validator in ai.preferred.venom
Methods in ai.preferred.venom that return Validator Modifier and Type Method Description Validator
UrlRouter. getValidator(Request request)
Validator
ValidatorRouter. getValidator(@NotNull Request request)
Returns the handler to be used for a specified request.Methods in ai.preferred.venom with parameters of type Validator Modifier and Type Method Description UrlRouter
UrlRouter. register(java.util.regex.Pattern urlPattern, Handler handler, Validator validator)
Adds a url pattern, and the handler to be used.UrlRouter
UrlRouter. register(java.util.regex.Pattern urlPattern, Validator validator)
Adds a url pattern, and the handler to be used. -
Uses of Validator in ai.preferred.venom.fetcher
Methods in ai.preferred.venom.fetcher with parameters of type Validator Modifier and Type Method Description AsyncFetcher.Builder
AsyncFetcher.Builder. setValidator(@NotNull Validator validator)
Sets the Validator to be used.AsyncFetcher.Builder
AsyncFetcher.Builder. setValidator(@NotNull Validator... validators)
Sets the multiple validators to be used.StorageFetcher.Builder
StorageFetcher.Builder. setValidator(@NotNull Validator validator)
Sets the Validator to be used.StorageFetcher.Builder
StorageFetcher.Builder. setValidator(@NotNull Validator... validators)
Sets the multiple validators to be used. -
Uses of Validator in ai.preferred.venom.validator
Classes in ai.preferred.venom.validator that implement Validator Modifier and Type Class Description class
EmptyContentValidator
This class determines the validity of a response by its content length.class
MimeTypeValidator
This class determines the validity of a response by its mime type.class
PipelineValidator
class
StatusOkValidator
This class determines the validity of a response by its status code.Fields in ai.preferred.venom.validator declared as Validator Modifier and Type Field Description static Validator
Validator. ALWAYS_VALID
A validator that always return valid.Constructors in ai.preferred.venom.validator with parameters of type Validator Constructor Description PipelineValidator(Validator... validators)
Constructs pipeline validator.Constructor parameters in ai.preferred.venom.validator with type arguments of type Validator Constructor Description PipelineValidator(java.util.List<Validator> validators)
Constructs pipeline validator.
-