Uses of Interface
org.jsoup.Connection
Packages that use Connection
Package
Description
Contains the main
Jsoup
class, which provides convenient static access to the jsoup functionality.HTML document structure nodes.
-
Uses of Connection in org.jsoup
Methods in org.jsoup that return ConnectionModifier and TypeMethodDescriptionstatic Connection
Creates a newConnection
to a URL.Set a cookie to be sent in the request.Adds each of the supplied cookies to the request.Add a number of request data parameters.Add a request data parameter.Connection.data
(String key, String filename, InputStream inputStream) Add an input stream as a request data parameter.Connection.data
(String key, String filename, InputStream inputStream, String contentType) Add an input stream as a request data parameter.Connection.data
(Collection<Connection.KeyVal> data) Adds all of the supplied data to the request data parametersAdds all of the supplied data to the request data parametersConnection.followRedirects
(boolean followRedirects) Configures the connection to (not) follow server redirects.Set a request header.Adds each of the supplied headers to the request.Connection.ignoreContentType
(boolean ignoreContentType) Ignore the document's Content-Type when parsing the response.Connection.ignoreHttpErrors
(boolean ignoreHttpErrors) Configures the connection to not throw exceptions when a HTTP error occurs.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 (i.e.Connection.method
(Connection.Method method) Set the request method to use, GET or POST.Provide an alternate parser to use when parsing the response to a Document.Connection.postDataCharset
(String charset) Sets the default post data character set for x-www-form-urlencoded post dataSet the HTTP proxy to use for this request.Set the proxy to use for this request.Set the request referrer (aka "referer") header.Connection.request
(Connection.Request request) Set the connection's requestConnection.requestBody
(String body) Set a POST (or PUT) request body.Connection.response
(Connection.Response response) Set the connection's responseConnection.sslSocketFactory
(SSLSocketFactory sslSocketFactory) Set custom SSL socket factoryConnection.timeout
(int millis) Set the total request timeout duration.Set the request URL to fetch.Set the request URL to fetch.Set the request user-agent header. -
Uses of Connection in org.jsoup.helper
Classes in org.jsoup.helper that implement ConnectionMethods in org.jsoup.helper that return ConnectionModifier and TypeMethodDescriptionstatic Connection
static Connection
HttpConnection.data
(String key, String filename, InputStream inputStream) HttpConnection.data
(String key, String filename, InputStream inputStream, String contentType) HttpConnection.data
(Collection<Connection.KeyVal> data) HttpConnection.followRedirects
(boolean followRedirects) HttpConnection.ignoreContentType
(boolean ignoreContentType) HttpConnection.ignoreHttpErrors
(boolean ignoreHttpErrors) HttpConnection.maxBodySize
(int bytes) HttpConnection.method
(Connection.Method method) HttpConnection.postDataCharset
(String charset) HttpConnection.request
(Connection.Request request) HttpConnection.requestBody
(String body) HttpConnection.response
(Connection.Response response) HttpConnection.sslSocketFactory
(SSLSocketFactory sslSocketFactory) HttpConnection.timeout
(int millis) -
Uses of Connection in org.jsoup.nodes
Methods in org.jsoup.nodes that return Connection