Package | Description |
---|---|
ai.preferred.venom | |
ai.preferred.venom.fetcher | |
ai.preferred.venom.response | |
ai.preferred.venom.validator |
Modifier and Type | Method and Description |
---|---|
Validator |
ValidatorRouter.getValidator(@NotNull Request request)
Returns the handler to be used for a specified request.
|
Validator |
UrlRouter.getValidator(Request request) |
Modifier and Type | Method and Description |
---|---|
UrlRouter |
UrlRouter.register(Pattern urlPattern,
Handler handler,
Validator validator)
Adds a url pattern, and the handler to be used.
|
UrlRouter |
UrlRouter.register(Pattern urlPattern,
Validator validator)
Adds a url pattern, and the handler to be used.
|
Modifier and Type | Method and Description |
---|---|
AsyncFetcher.Builder |
AsyncFetcher.Builder.validator(@NotNull Validator validator)
Sets the Validator to be used.
|
Modifier and Type | Method and Description |
---|---|
Validator |
VResponse.getValidator() |
@NotNull Validator |
Response.getValidator()
Returns the instance of validator used to validate this response.
|
Validator |
BaseResponse.getValidator() |
Modifier and Type | Method and Description |
---|---|
BaseResponse |
BaseResponse.setValidator(Validator validator)
Sets the validator used to validate this response.
|
Constructor and Description |
---|
BaseResponse(int statusCode,
String baseUrl,
byte[] content,
org.apache.http.entity.ContentType contentType,
org.apache.http.Header[] headers,
org.apache.http.HttpHost proxy,
Validator validator,
String sourceId)
Constructs a base response.
|
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
static Validator |
Validator.ALWAYS_VALID
A validator that always return valid.
|
Constructor and Description |
---|
PipelineValidator(Validator... validators)
Constructs pipeline validator.
|
Constructor and Description |
---|
PipelineValidator(List<Validator> validators)
Constructs pipeline validator.
|
Copyright © 2018. All rights reserved.