| Package | Description |
|---|---|
| ai.preferred.venom | |
| ai.preferred.venom.fetcher | |
| ai.preferred.venom.response | |
| ai.preferred.venom.validator |
| Modifier and Type | Field and Description |
|---|---|
static ResponseValidator |
ResponseValidator.EMPTY_VALIDATOR |
| Modifier and Type | Method and Description |
|---|---|
ResponseValidator |
ValidatorRouter.getValidator(@NotNull Request request)
Returns the handler to be used for a specified request
|
ResponseValidator |
UrlRouter.getValidator(Request request) |
| Modifier and Type | Method and Description |
|---|---|
UrlRouter |
UrlRouter.register(Pattern urlPattern,
Handler handler,
ResponseValidator validator)
Adds a url pattern, and the handler to be used.
|
UrlRouter |
UrlRouter.register(Pattern urlPattern,
ResponseValidator validator)
Adds a url pattern, and the handler to be used.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncFetcher.Builder |
AsyncFetcher.Builder.validator(@NotNull ResponseValidator validator)
Sets the ResponseValidator to be used.
|
| Constructor and Description |
|---|
AsyncResponseConsumer(ResponseValidator validator,
Set<Integer> stopCodes,
boolean compressed,
HttpFetcherRequest request) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ResponseValidator |
Response.getValidator()
Returns the instance of validator used to validate this response
|
ResponseValidator |
HandyResponse.getValidator() |
ResponseValidator |
BaseResponse.getValidator() |
| Modifier and Type | Method and Description |
|---|---|
BaseResponse |
BaseResponse.setValidator(ResponseValidator validator) |
| 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,
Browser browser,
ResponseValidator validator,
String sourceId) |
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyContentValidator |
class |
MimeTypeValidator |
class |
PipelineValidator |
class |
StatusOkValidator |
| Constructor and Description |
|---|
PipelineValidator(ResponseValidator... validators) |
| Constructor and Description |
|---|
PipelineValidator(List<ResponseValidator> validators) |
Copyright © 2018. All rights reserved.