Class ServletResponseController
- java.lang.Object
-
- com.yahoo.jdisc.http.server.jetty.ServletResponseController
-
public class ServletResponseController extends java.lang.Object
- Author:
- Tony Vaagenes, bjorncs
-
-
Field Summary
Fields Modifier and Type Field Description com.yahoo.jdisc.handler.ContentChannel
responseContentChannel
com.yahoo.jdisc.handler.ResponseHandler
responseHandler
-
Constructor Summary
Constructors Constructor Description ServletResponseController(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, java.util.concurrent.Executor executor, MetricReporter metricReporter, boolean developerMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>
finishedFuture()
When this future completes there will be no more calls against the servlet output stream or servlet response.void
trySendError(java.lang.Throwable t)
-
-
-
Constructor Detail
-
ServletResponseController
public ServletResponseController(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, java.util.concurrent.Executor executor, MetricReporter metricReporter, boolean developerMode) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
trySendError
public void trySendError(java.lang.Throwable t)
-
finishedFuture
public java.util.concurrent.CompletableFuture<java.lang.Void> finishedFuture()
When this future completes there will be no more calls against the servlet output stream or servlet response. The framework is still allowed to invoke us though. The future might complete in the servlet framework thread, user thread or executor thread.
-
-