8197564: HTTP Client implementation

Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Michael McMahon <michael.x.mcmahon@oracle.com>
Co-authored-by: Pavel Rappo <pavel.rappo@oracle.com>
Reviewed-by: chegar, dfuchs, michaelm, prappo
This commit is contained in:
Chris Hegarty 2018-04-17 08:54:17 -07:00
parent a9234c0ab6
commit a3b61fd4c7
398 changed files with 37643 additions and 10897 deletions

View file

@ -36,9 +36,9 @@ import sun.security.util.SecurityConstants;
* handler. The HTTP state management mechanism specifies a way to
* create a stateful session with HTTP requests and responses.
*
* <p>A system-wide CookieHandler that to used by the HTTP protocol
* handler can be registered by doing a
* CookieHandler.setDefault(CookieHandler). The currently registered
* <p> A system-wide CookieHandler to be used by the {@linkplain
* HttpURLConnection HTTP URL stream protocol handler} can be registered by
* doing a CookieHandler.setDefault(CookieHandler). The currently registered
* CookieHandler can be retrieved by calling
* CookieHandler.getDefault().
*

View file

@ -156,7 +156,7 @@ of proxies.</P>
checked only once at startup.</P>
</UL>
<a id="MiscHTTP"></a>
<H2>Misc HTTP properties</H2>
<H2>Misc HTTP URL stream protocol handler properties</H2>
<UL>
<LI><P><B>http.agent</B> (default: &ldquo;Java/&lt;version&gt;&rdquo;)<BR>
Defines the string sent in the User-Agent request header in http

View file

@ -121,8 +121,8 @@
* underlying protocol handlers like http or https.</li>
* <li>{@link java.net.HttpURLConnection} is a subclass of URLConnection
* and provides some additional functionalities specific to the
* HTTP protocol. This API has been superceded by the newer
HTTP client API described in the previous section.</li>
* HTTP protocol. This API has been superseded by the newer
* {@linkplain java.net.http HTTP Client API}.</li>
* </ul>
* <p>The recommended usage is to use {@link java.net.URI} to identify
* resources, then convert it into a {@link java.net.URL} when it is time to

View file

@ -171,7 +171,7 @@ module java.base {
jdk.attach,
jdk.charsets,
jdk.compiler,
jdk.incubator.httpclient,
java.net.http,
jdk.jdeps,
jdk.jlink,
jdk.jshell,
@ -204,12 +204,11 @@ module java.base {
jdk.internal.jvmstat;
exports jdk.internal.vm.annotation to
jdk.unsupported,
jdk.internal.vm.ci,
jdk.incubator.httpclient;
jdk.internal.vm.ci;
exports jdk.internal.util.jar to
jdk.jartool;
exports sun.net to
jdk.incubator.httpclient,
java.net.http,
jdk.naming.dns;
exports sun.net.ext to
jdk.net;
@ -219,10 +218,10 @@ module java.base {
exports sun.net.util to
java.desktop,
jdk.jconsole,
jdk.incubator.httpclient;
java.net.http;
exports sun.net.www to
java.desktop,
jdk.incubator.httpclient,
java.net.http,
jdk.jartool;
exports sun.net.www.protocol.http to
java.security.jgss;