Package | Description |
---|---|
org.jsoup |
Contains the main
Jsoup class, which provides convenient static access to the jsoup functionality. |
org.jsoup.helper | |
org.jsoup.nodes |
HTML document structure nodes.
|
Modifier and Type | Method | Description |
---|---|---|
static Connection |
Jsoup.connect(String url) |
Creates a new
Connection to a URL. |
Connection |
Connection.cookie(String name,
String value) |
Set a cookie to be sent in the request.
|
Connection |
Connection.cookies(Map<String,String> cookies) |
Adds each of the supplied cookies to the request.
|
Connection |
Connection.data(String... keyvals) |
Add a number of request data parameters.
|
Connection |
Connection.data(String key,
String value) |
Add a request data parameter.
|
Connection |
Connection.data(String key,
String filename,
InputStream inputStream) |
Add an input stream as a request data parameter.
|
Connection |
Connection.data(String key,
String filename,
InputStream inputStream,
String contentType) |
Add an input stream as a request data parameter.
|
Connection |
Connection.data(Collection<Connection.KeyVal> data) |
Adds all of the supplied data to the request data parameters
|
Connection |
Connection.data(Map<String,String> data) |
Adds all of the supplied data to the request data parameters
|
Connection |
Connection.followRedirects(boolean followRedirects) |
Configures the connection to (not) follow server redirects.
|
Connection |
Connection.header(String name,
String value) |
Set a request header.
|
Connection |
Connection.headers(Map<String,String> headers) |
Adds each of the supplied headers to the request.
|
Connection |
Connection.ignoreContentType(boolean ignoreContentType) |
Ignore the document's Content-Type when parsing the response.
|
Connection |
Connection.ignoreHttpErrors(boolean ignoreHttpErrors) |
Configures the connection to not throw exceptions when a HTTP error occurs.
|
Connection |
Connection.maxBodySize(int bytes) |
Set the maximum bytes to read from the (uncompressed) connection into the body, before the connection is closed,
and the input truncated.
|
Connection |
Connection.method(Connection.Method method) |
Set the request method to use, GET or POST.
|
Connection |
Connection.parser(Parser parser) |
Provide an alternate parser to use when parsing the response to a Document.
|
Connection |
Connection.postDataCharset(String charset) |
Sets the default post data character set for x-www-form-urlencoded post data
|
Connection |
Connection.proxy(String host,
int port) |
Set the HTTP proxy to use for this request.
|
Connection |
Connection.proxy(Proxy proxy) |
Set the proxy to use for this request.
|
Connection |
Connection.referrer(String referrer) |
Set the request referrer (aka "referer") header.
|
Connection |
Connection.request(Connection.Request request) |
Set the connection's request
|
Connection |
Connection.requestBody(String body) |
Set a POST (or PUT) request body.
|
Connection |
Connection.response(Connection.Response response) |
Set the connection's response
|
Connection |
Connection.sslSocketFactory(SSLSocketFactory sslSocketFactory) |
Set custom SSL socket factory
|
Connection |
Connection.timeout(int millis) |
Set the total request timeout duration.
|
Connection |
Connection.url(String url) |
Set the request URL to fetch.
|
Connection |
Connection.url(URL url) |
Set the request URL to fetch.
|
Connection |
Connection.userAgent(String userAgent) |
Set the request user-agent header.
|
Connection |
Connection.validateTLSCertificates(boolean value) |
Deprecated.
as distributions (specifically Google Play) are starting to show warnings if these checks are
disabled.
|
Modifier and Type | Class | Description |
---|---|---|
class |
HttpConnection |
Implementation of
Connection . |
Modifier and Type | Method | Description |
---|---|---|
static Connection |
HttpConnection.connect(String url) |
|
static Connection |
HttpConnection.connect(URL url) |
|
Connection |
HttpConnection.cookie(String name,
String value) |
|
Connection |
HttpConnection.cookies(Map<String,String> cookies) |
|
Connection |
HttpConnection.data(String... keyvals) |
|
Connection |
HttpConnection.data(String key,
String value) |
|
Connection |
HttpConnection.data(String key,
String filename,
InputStream inputStream) |
|
Connection |
HttpConnection.data(String key,
String filename,
InputStream inputStream,
String contentType) |
|
Connection |
HttpConnection.data(Collection<Connection.KeyVal> data) |
|
Connection |
HttpConnection.data(Map<String,String> data) |
|
Connection |
HttpConnection.followRedirects(boolean followRedirects) |
|
Connection |
HttpConnection.header(String name,
String value) |
|
Connection |
HttpConnection.headers(Map<String,String> headers) |
|
Connection |
HttpConnection.ignoreContentType(boolean ignoreContentType) |
|
Connection |
HttpConnection.ignoreHttpErrors(boolean ignoreHttpErrors) |
|
Connection |
HttpConnection.maxBodySize(int bytes) |
|
Connection |
HttpConnection.method(Connection.Method method) |
|
Connection |
HttpConnection.parser(Parser parser) |
|
Connection |
HttpConnection.postDataCharset(String charset) |
|
Connection |
HttpConnection.proxy(String host,
int port) |
|
Connection |
HttpConnection.proxy(Proxy proxy) |
|
Connection |
HttpConnection.referrer(String referrer) |
|
Connection |
HttpConnection.request(Connection.Request request) |
|
Connection |
HttpConnection.requestBody(String body) |
|
Connection |
HttpConnection.response(Connection.Response response) |
|
Connection |
HttpConnection.sslSocketFactory(SSLSocketFactory sslSocketFactory) |
|
Connection |
HttpConnection.timeout(int millis) |
|
Connection |
HttpConnection.url(String url) |
|
Connection |
HttpConnection.url(URL url) |
|
Connection |
HttpConnection.userAgent(String userAgent) |
|
Connection |
HttpConnection.validateTLSCertificates(boolean value) |
Modifier and Type | Method | Description |
---|---|---|
Connection |
FormElement.submit() |
Prepare to submit this form.
|
Copyright © 2009–2018 Jonathan Hedley. All rights reserved.