Uses of Interface
org.jsoup.Connection
| 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.
|
-
Uses of Connection in org.jsoup
Methods in org.jsoup that return Connection Modifier and Type Method Description static ConnectionJsoup. connect(String url)Creates a newConnectionto a URL.ConnectionConnection. cookie(String name, String value)Set a cookie to be sent in the request.ConnectionConnection. cookies(Map<String,String> cookies)Adds each of the supplied cookies to the request.ConnectionConnection. data(String... keyvals)Add a number of request data parameters.ConnectionConnection. data(String key, String value)Add a request data parameter.ConnectionConnection. data(String key, String filename, InputStream inputStream)Add an input stream as a request data parameter.ConnectionConnection. data(String key, String filename, InputStream inputStream, String contentType)Add an input stream as a request data parameter.ConnectionConnection. data(Collection<Connection.KeyVal> data)Adds all of the supplied data to the request data parametersConnectionConnection. data(Map<String,String> data)Adds all of the supplied data to the request data parametersConnectionConnection. followRedirects(boolean followRedirects)Configures the connection to (not) follow server redirects.ConnectionConnection. header(String name, String value)Set a request header.ConnectionConnection. headers(Map<String,String> headers)Adds each of the supplied headers to the request.ConnectionConnection. ignoreContentType(boolean ignoreContentType)Ignore the document's Content-Type when parsing the response.ConnectionConnection. ignoreHttpErrors(boolean ignoreHttpErrors)Configures the connection to not throw exceptions when a HTTP error occurs.ConnectionConnection. 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.ConnectionConnection. method(Connection.Method method)Set the request method to use, GET or POST.ConnectionConnection. parser(Parser parser)Provide an alternate parser to use when parsing the response to a Document.ConnectionConnection. postDataCharset(String charset)Sets the default post data character set for x-www-form-urlencoded post dataConnectionConnection. proxy(String host, int port)Set the HTTP proxy to use for this request.ConnectionConnection. proxy(Proxy proxy)Set the proxy to use for this request.ConnectionConnection. referrer(String referrer)Set the request referrer (aka "referer") header.ConnectionConnection. request(Connection.Request request)Set the connection's requestConnectionConnection. requestBody(String body)Set a POST (or PUT) request body.ConnectionConnection. response(Connection.Response response)Set the connection's responseConnectionConnection. sslSocketFactory(SSLSocketFactory sslSocketFactory)Set custom SSL socket factoryConnectionConnection. timeout(int millis)Set the total request timeout duration.ConnectionConnection. url(String url)Set the request URL to fetch.ConnectionConnection. url(URL url)Set the request URL to fetch.ConnectionConnection. userAgent(String userAgent)Set the request user-agent header. -
Uses of Connection in org.jsoup.helper
Classes in org.jsoup.helper that implement Connection Modifier and Type Class Description classHttpConnectionImplementation ofConnection.Methods in org.jsoup.helper that return Connection Modifier and Type Method Description static ConnectionHttpConnection. connect(String url)static ConnectionHttpConnection. connect(URL url)ConnectionHttpConnection. cookie(String name, String value)ConnectionHttpConnection. cookies(Map<String,String> cookies)ConnectionHttpConnection. data(String... keyvals)ConnectionHttpConnection. data(String key, String value)ConnectionHttpConnection. data(String key, String filename, InputStream inputStream)ConnectionHttpConnection. data(String key, String filename, InputStream inputStream, String contentType)ConnectionHttpConnection. data(Collection<Connection.KeyVal> data)ConnectionHttpConnection. data(Map<String,String> data)ConnectionHttpConnection. followRedirects(boolean followRedirects)ConnectionHttpConnection. header(String name, String value)ConnectionHttpConnection. headers(Map<String,String> headers)ConnectionHttpConnection. ignoreContentType(boolean ignoreContentType)ConnectionHttpConnection. ignoreHttpErrors(boolean ignoreHttpErrors)ConnectionHttpConnection. maxBodySize(int bytes)ConnectionHttpConnection. method(Connection.Method method)ConnectionHttpConnection. parser(Parser parser)ConnectionHttpConnection. postDataCharset(String charset)ConnectionHttpConnection. proxy(String host, int port)ConnectionHttpConnection. proxy(Proxy proxy)ConnectionHttpConnection. referrer(String referrer)ConnectionHttpConnection. request(Connection.Request request)ConnectionHttpConnection. requestBody(String body)ConnectionHttpConnection. response(Connection.Response response)ConnectionHttpConnection. sslSocketFactory(SSLSocketFactory sslSocketFactory)ConnectionHttpConnection. timeout(int millis)ConnectionHttpConnection. url(String url)ConnectionHttpConnection. url(URL url)ConnectionHttpConnection. userAgent(String userAgent) -
Uses of Connection in org.jsoup.nodes
Methods in org.jsoup.nodes that return Connection Modifier and Type Method Description ConnectionFormElement. submit()Prepare to submit this form.