Package org.jsoup.helper
Class CookieUtil
java.lang.Object
org.jsoup.helper.CookieUtil
Helper functions to support the Cookie Manager / Cookie Storage in HttpConnection.
- Since:
- 1.14.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
Pre-request, get any applicable headers out of the Request cookies and the Cookie Store, and add them to the request headers.(package private) static URI
private static LinkedHashSet<String>
(package private) static void
storeCookies
(HttpConnection.Request req, URL url, Map<String, List<String>> resHeaders)
-
Field Details
-
EmptyRequestHeaders
-
Sep
- See Also:
-
CookieName
- See Also:
-
Cookie2Name
- See Also:
-
-
Constructor Details
-
CookieUtil
CookieUtil()
-
-
Method Details
-
applyCookiesToRequest
static void applyCookiesToRequest(HttpConnection.Request req, HttpURLConnection con) throws IOException Pre-request, get any applicable headers out of the Request cookies and the Cookie Store, and add them to the request headers. If the Cookie Store duplicates any Request cookies (same name and value), they will be discarded.- Throws:
IOException
-
requestCookieSet
-
asUri
- Throws:
IOException
-
storeCookies
static void storeCookies(HttpConnection.Request req, URL url, Map<String, List<String>> resHeaders) throws IOException- Throws:
IOException
-