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 | |
com.jaunt.util |
Modifier and Type | Method and Description |
---|---|
UserAgent |
UserAgent.addBasicAuthenticator(String realmName,
String userId,
String password)
Adds a BasicAuthenticator to the collection of BasicAuthenticators.
|
UserAgent |
UserAgent.addBasicAuthenticator(String realmName,
String protectedDir,
String userId,
String password)
Adds a BasicAuthenticator to the collection of BasicAuthenticators.
|
UserAgent |
UserAgent.copy()
returns a new UserAgent who's state information for certain fields is (deep) copied from this UserAgent; those fields are UserAgent.settings, UserAgent.cookies, as well as the location url (referer), the proxy host, and proxy port.
|
UserAgent |
UserAgent.setCache(Cache cache)
Sets the specified cache; the cache must be enabled before being used.
|
UserAgent |
UserAgent.setCacheEnabled(boolean enable)
Turns on/off caching, which causes HTML/XHTML source retrieved by HTTP GET request to be stored in the cache and pulled from that cache for any subsequent GET requests to the same url, as long as caching is enabled; by default, caching is handled by the FileSystemCache, which stores files in a directory called "jaunt_cache", which is in the directory specified by UserAgentSettings.outputPath.
|
UserAgent |
UserAgent.setFilter(FilterCallback filter)
Deprecated.
|
UserAgent |
UserAgent.setHandler(String contentType,
Handler handler)
Sets the content handler for the specified contentType; the Handler receives callbacks to process the content rather than having it handled by the parser.
|
UserAgent |
UserAgent.setProxyHost(String proxyHost)
Sets or clears the ip address of the http proxy.
|
UserAgent |
UserAgent.setProxyPort(int proxyPort)
Sets the port number of the http proxy to be used.
|
UserAgent |
UserAgent.setReferer(String referer)
Sets the value of the referer header in the next HTTP request.
|
Constructor and Description |
---|
Form(Element formElement,
List<Element> componentElements,
Document doc,
UserAgent userAgent) |
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
|