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.component |
Modifier and Type | Method and Description |
---|---|
static HttpRequest |
HttpRequest.make(short httpMethod,
String url,
short enctype,
MultiMap<String,String> nameValuePairs,
MultiMap<String,File> nameFilePairs,
String content,
Map<String,String> additionalHeaders)
Creates and returns an HTTP request.
|
static HttpRequest |
HttpRequest.makeDELETE(String url)
Creates and returns a DELETE HttpRequest.
|
static HttpRequest |
HttpRequest.makeDELETE(String url,
Map<String,String> additionalHeaders)
Creates and returns a DELETE HttpRequest.
|
static HttpRequest |
HttpRequest.makeGET(String url)
Creates and returns a GET HttpRequest.
|
static HttpRequest |
HttpRequest.makeGET(String url,
MultiMap<String,String> nameValuePairs,
Map<String,String> additionalHeaders)
Creates and returns a GET HttpRequest.
|
static HttpRequest |
HttpRequest.makeHEAD(String url)
Creates and returns a HEAD HttpRequest.
|
static HttpRequest |
HttpRequest.makeHEAD(String url,
Map<String,String> additionalHeaders)
Creates and returns a HEAD HttpRequest.
|
static HttpRequest |
HttpRequest.makePOST(String url,
MultiMap<String,String> nameValuePairs)
Creates and returns a POST HttpRequest.
|
static HttpRequest |
HttpRequest.makePOST(String url,
short enctype,
MultiMap<String,String> nameValuePairs,
MultiMap<String,File> nameFilePairs,
Map<String,String> additionalHeaders)
Creates and returns a POST HttpRequest.
|
static HttpRequest |
HttpRequest.makePUT(String url,
String content)
Creates and returns a PUT HttpRequest.
|
static HttpRequest |
HttpRequest.makePUT(String url,
String content,
Map<String,String> additionalHeaders)
Creates and returns a PUT HttpRequest.
|
Modifier and Type | Method and Description |
---|---|
Document |
UserAgent.send(HttpRequest httpRequest)
Sends the specified HttpRequest (GET, POST, HEAD, DELETE, or PUT)
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
Form.getRequest()
Returns the HttpRequest object corresponding to a form submission without pressing any particular submit button, or returns null if this form has no (implicit or explicit) action.
|
HttpRequest |
Form.getRequest(int submitButtonIndex)
Returns an HttpRequest object corresponding to a form submission made by pressing the submit button specified by its index, with indexing starting at 0 for the first submit button, throwing a NotFound Exception if the specified submitButton is not found, or returns null if this form has no (implicit or explicit) action.
|
HttpRequest |
Form.getRequest(Pattern submitLabelPattern)
Returns the HttpRequest object corresponding to a form submission made by pressing the first submit button who's label matches the specified (case insensitive) regular expression Pattern (using Matcher.matches), or returns null if this form has no (implicit or explicit) action.
|
HttpRequest |
Form.getRequest(String submitButtonRegex)
Returns the HttpRequest object corresponding to a form submission made by pressing the first submit button who's label matches the specified (case insensitive) regular expression (using Matcher.matches), or returns null if this form has no (implicit or explicit) action.
|
Modifier and Type | Method and Description |
---|---|
List<HttpRequest> |
Form.getRequestPermutations()
Generates a list of HttpRequests that represent all the requests made by permuting tagged components through their values.
|
List<HttpRequest> |
Form.getRequestPermutations(String submitLabelRegex)
Generates a list of HttpRequests that represent all the requests made by permuting tagged components through their values.
|