Class ServletResponseController


  • public class ServletResponseController
    extends java.lang.Object
    Author:
    Tony Vaagenes, bjorncs
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • responseHandler

        public final com.yahoo.jdisc.handler.ResponseHandler responseHandler
      • responseContentChannel

        public final com.yahoo.jdisc.handler.ContentChannel responseContentChannel
    • 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.