public interface Handleable
Modifier and Type | Method and Description |
---|---|
void |
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.
|
void handle(@NotNull @NotNull Request request, @NotNull @NotNull Response response, @NotNull @NotNull Scheduler scheduler, @NotNull @NotNull Session session, @NotNull @NotNull Worker worker)
This function will hold the logic after the page/file has been fetched.
request
- request fetched.response
- response received from server.scheduler
- scheduler used for this request.session
- session variables defined when the crawler is initiated.worker
- provides the ability to run code in a separate thread.Copyright © 2018. All rights reserved.