http-client-branch: remove unimplemented response trailers http-client-branch
authorchegar
Tue, 14 Nov 2017 14:35:08 +0000
branchhttp-client-branch
changeset 55810 7fd3589d3388
parent 55809 b8fefba89929
child 55811 deecd5ea67cf
http-client-branch: remove unimplemented response trailers
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponseImpl.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java	Tue Nov 14 13:27:32 2017 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java	Tue Nov 14 14:35:08 2017 +0000
@@ -122,16 +122,6 @@
     public abstract HttpHeaders headers();
 
     /**
-     * Returns the received response trailers, if there are any, when they
-     * become available. For many response subscriber types this will be at the
-     * same time as the {@code HttpResponse} itself is available. In such cases,
-     * the returned {@code CompletableFuture} will be already completed.
-     *
-     * @return a CompletableFuture of the response trailers (may be empty)
-     */
-    public abstract CompletableFuture<HttpHeaders> trailers();
-
-    /**
      * Returns the body. Depending on the type of {@code T}, the returned body
      * may represent the body after it was read (such as {@code byte[]}, or
      * {@code String}, or {@code Path}) or it may represent an object with
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponseImpl.java	Tue Nov 14 13:27:32 2017 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponseImpl.java	Tue Nov 14 14:35:08 2017 +0000
@@ -168,11 +168,6 @@
     }
 
     @Override
-    public CompletableFuture<HttpHeaders> trailers() {
-        throw new UnsupportedOperationException("Not supported yet.");
-    }
-
-    @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
         String method = request().method();