diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-12-13 17:28:17 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-12-13 17:28:17 +0100 |
commit | 0646f8608fa5bfd80aee65e19b85df7b893af3c3 (patch) | |
tree | f1fa73eb482247b2b863fdc5230cfbd41116f04f /container-core | |
parent | c9342104c7b55e67216db42b3f27f21c7e4547ab (diff) |
Remove unused method
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestDispatch.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestDispatch.java b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestDispatch.java index aedbb3afb69..9292e2024df 100644 --- a/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestDispatch.java +++ b/container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/HttpRequestDispatch.java @@ -5,7 +5,6 @@ import com.yahoo.container.logging.AccessLogEntry; import com.yahoo.jdisc.Metric.Context; import com.yahoo.jdisc.References; import com.yahoo.jdisc.ResourceReference; -import com.yahoo.jdisc.Response; import com.yahoo.jdisc.handler.BindingNotFoundException; import com.yahoo.jdisc.handler.ContentChannel; import com.yahoo.jdisc.handler.OverloadException; @@ -38,7 +37,6 @@ import java.util.logging.Logger; import static com.yahoo.jdisc.http.HttpHeaders.Values.APPLICATION_X_WWW_FORM_URLENCODED; import static com.yahoo.jdisc.http.server.jetty.RequestUtils.getConnector; -import static com.yahoo.yolean.Exceptions.throwUnchecked; /** * @author Simon Thoresen Hult @@ -104,22 +102,6 @@ class HttpRequestDispatch { servletRequestReader.start(); } - ContentChannel dispatchFilterRequest(Response response) { - try { - CompletableFuture<Void> requestCompletion = startServletAsyncExecution(); - jettyRequest.getInputStream().close(); - ContentChannel responseContentChannel = servletResponseController.responseHandler().handleResponse(response); - servletResponseController.finishedFuture() - .whenComplete((r, t) -> { - if (t != null) requestCompletion.completeExceptionally(t); - else requestCompletion.complete(null); - }); - return responseContentChannel; - } catch (IOException e) { - throw throwUnchecked(e); - } - } - private CompletableFuture<Void> startServletAsyncExecution() { CompletableFuture<Void> requestCompletion = new CompletableFuture<>(); AsyncContext asyncCtx = jettyRequest.startAsync(); |