Package | Description |
---|---|
ai.preferred.venom | |
ai.preferred.venom.fetcher | |
ai.preferred.venom.response | |
ai.preferred.venom.storage | |
ai.preferred.venom.validator |
Modifier and Type | Method and Description |
---|---|
void |
Crawler.AsyncCrawlerCallbackProcessor.completed(Response response) |
default void |
Handler.handle(Request request,
Response response,
Scheduler scheduler,
Session session,
Worker worker) |
void |
Handleable.handle(@NotNull Request request,
@NotNull Response response,
@NotNull Scheduler scheduler,
@NotNull Session session,
@NotNull Worker worker)
This function is called when the request is fetched successfully.
|
Modifier and Type | Method and Description |
---|---|
Response |
ValidationException.getResponse()
Get the response validated.
|
Modifier and Type | Method and Description |
---|---|
Future<Response> |
AsyncFetcher.fetch(Request request) |
Future<Response> |
AsyncFetcher.fetch(Request request,
org.apache.http.concurrent.FutureCallback<Response> callback) |
Modifier and Type | Method and Description |
---|---|
void |
Callback.completed(@NotNull Request request,
@NotNull Response response)
Method to be call upon completion of request.
|
Modifier and Type | Method and Description |
---|---|
Future<Response> |
AsyncFetcher.fetch(Request request,
org.apache.http.concurrent.FutureCallback<Response> callback) |
Constructor and Description |
---|
ValidationException(Validator.Status status,
Response response,
String message)
Constructs a validation exception with a message.
|
ValidationException(Validator.Status status,
Response response,
String message,
Throwable cause) |
ValidationException(Validator.Status status,
Response response,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
ValidationException(Validator.Status status,
Response response,
Throwable cause) |
Modifier and Type | Interface and Description |
---|---|
interface |
Retrievable
This interface represents that the response can be/ has been stored.
|
interface |
Unwrappable
This interface represents that the response can be unwrapped.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseResponse |
class |
VResponse |
Modifier and Type | Method and Description |
---|---|
Response |
VResponse.getInner() |
@NotNull Response |
Unwrappable.getInner()
Returns the unwrapped version of this request.
|
Constructor and Description |
---|
VResponse(Response response)
Constructs a VResponse.
|
Modifier and Type | Method and Description |
---|---|
@NotNull String |
FileManager.put(@NotNull Request request,
@NotNull Response response)
Puts record into database.
|
Modifier and Type | Method and Description |
---|---|
Validator.Status |
Validator.isValid(@NotNull Request request,
@NotNull Response response)
Method will be called when a response need validation.
|
Validator.Status |
StatusOkValidator.isValid(Request request,
Response response) |
Validator.Status |
PipelineValidator.isValid(Request request,
Response response) |
Validator.Status |
MimeTypeValidator.isValid(Request request,
Response response) |
Validator.Status |
EmptyContentValidator.isValid(Request request,
Response response) |
Copyright © 2018. All rights reserved.