Package | Description |
---|---|
com.jaunt |
Jaunt [website] is a web-scraping & automation library that provides a lightweight HTTP useragent (headless browser), including JSON parser.
|
com.jaunt.util |
Modifier and Type | Field and Description |
---|---|
HttpResponse |
UserAgent.response
The Response object generated by the most recent HTTP request.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
UserAgent.download(String url,
File downloadFile)
Downloads and saves the content at the specified url as the specified File, overwriting the file if it already exists; this method does not invoke the parser, and therefore UserAgent.doc is set to an empty Document; UserAgent.response is created to represent the HttpResponse.
|
HttpResponse |
ResponseException.getResponse()
Returns the Response associated with the Exception, which encapsulated meta-data (including HTTP status codes) for the HTTP response.
|
HttpResponse |
UserAgent.sendHEAD(String url)
Sends an HTTP HEAD request to the specified url; UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information), and is also the return value.
|
HttpResponse |
UserAgent.sendHEAD(String url,
String... additionalHeaders)
Sends an HTTP HEAD request to the specified url; UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information), and is also the return value.
|
Constructor and Description |
---|
ResponseException(String message,
HttpResponse response,
String requestUrlData)
Create a ResponseException from the specified text (error message) and Response object, which can be null (indicating an ability to make a connection).
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HandlerForText.getResponse()
Returns the HttpResponse, which represents meta-information associated with the HTTP response.
|
HttpResponse |
HandlerForBinary.getResponse()
Returns the HttpResponse, which represents meta-information associated with the HTTP response.
|
Modifier and Type | Method and Description |
---|---|
void |
HandlerForText.handle(UserAgent ua,
HttpResponse response,
InputStream is,
BufferedReader br)
Satisfies interface.
|
void |
HandlerForBinary.handle(UserAgent ua,
HttpResponse response,
InputStream is,
BufferedReader br)
satisfies interface.
|
void |
Handler.handle(UserAgent ua,
HttpResponse response,
InputStream inputStream,
BufferedReader br)
Handle the response data by reading from either the InputStream or the BufferedReader
|