# HG changeset patch # User chegar # Date 1518535687 0 # Node ID dca5d4a9f4e3cea7781f6ba56886475f17bcd401 # Parent 5db317238575444c470b2e1b4e59cfaf1237ba5a http-client-branch: add RFC links to the package description. Add javadoc to the public Exception types diff -r 5db317238575 -r dca5d4a9f4e3 src/java.net.http/share/classes/java/net/http/HttpTimeoutException.java --- a/src/java.net.http/share/classes/java/net/http/HttpTimeoutException.java Tue Feb 13 14:42:41 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpTimeoutException.java Tue Feb 13 15:28:07 2018 +0000 @@ -36,6 +36,12 @@ private static final long serialVersionUID = 981344271622632951L; + /** + * Constructs an {@code HttpTimeoutException} with the given detail message. + * + * @param message + * The detail message; can be {@code null} + */ public HttpTimeoutException(String message) { super(message); } diff -r 5db317238575 -r dca5d4a9f4e3 src/java.net.http/share/classes/java/net/http/WebSocketHandshakeException.java --- a/src/java.net.http/share/classes/java/net/http/WebSocketHandshakeException.java Tue Feb 13 14:42:41 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/WebSocketHandshakeException.java Tue Feb 13 15:28:07 2018 +0000 @@ -38,6 +38,13 @@ private final transient HttpResponse response; + /** + * Constructs a {@code WebSocketHandshakeException} with the given + * {@code HttpResponse}. + * + * @param response + * the {@code HttpResponse} that resulted in the handshake failure + */ public WebSocketHandshakeException(HttpResponse response) { this.response = response; } @@ -46,7 +53,7 @@ * Returns the server's counterpart of the opening handshake. * *

The value may be unavailable ({@code null}) if this exception has - * been serialized and then read back in. + * been serialized and then deserialized. * * @return server response */ diff -r 5db317238575 -r dca5d4a9f4e3 src/java.net.http/share/classes/java/net/http/package-info.java --- a/src/java.net.http/share/classes/java/net/http/package-info.java Tue Feb 13 14:42:41 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/package-info.java Tue Feb 13 15:28:07 2018 +0000 @@ -36,6 +36,12 @@ *

  • {@link java.net.http.WebSocket}
  • * * + *

    The HTTP protocol specific requirements are specified in the + * Hypertext Transfer Protocol + * Version 2 (HTTP/2), the + * Hypertext Transfer Protocol (HTTP/1.1), and + * The WebSocket Protocol. + * *

    Asynchronous tasks and dependent actions of returned {@link * java.util.concurrent.CompletableFuture} instances are executed on the threads * supplied by the client's {@link java.util.concurrent.Executor}, where