Class AsyncMiddleManServlet.ProxyWriter

java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.ee11.proxy.AsyncMiddleManServlet.ProxyWriter
All Implemented Interfaces:
jakarta.servlet.WriteListener, EventListener, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
Enclosing class:
AsyncMiddleManServlet

protected class AsyncMiddleManServlet.ProxyWriter extends org.eclipse.jetty.util.IteratingCallback implements jakarta.servlet.WriteListener
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback

    org.eclipse.jetty.util.IteratingCallback.Action

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback

    org.eclipse.jetty.util.Callback.Combination, org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable

    org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task
  • Field Summary

    Fields inherited from interface org.eclipse.jetty.util.Callback

    NOOP, NOT_CALLED

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProxyWriter(jakarta.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.Response serverResponse)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.util.thread.Invocable.InvocationType
     
    boolean
    offer(ByteBuffer content, org.eclipse.jetty.util.Callback callback)
     
    protected void
     
    void
    onError(Throwable failure)
     
    protected void
     
    void
     
    protected org.eclipse.jetty.util.IteratingCallback.Action
     

    Methods inherited from class org.eclipse.jetty.util.IteratingCallback

    abort, close, failed, isAborted, isClosed, isFailed, isSucceeded, iterate, onAborted, onCompleted, onCompleteSuccess, onFailure, reset, succeeded, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Callback

    completeWith
  • Constructor Details

    • ProxyWriter

      protected ProxyWriter(jakarta.servlet.http.HttpServletRequest clientRequest, org.eclipse.jetty.client.Response serverResponse)
  • Method Details

    • offer

      public boolean offer(ByteBuffer content, org.eclipse.jetty.util.Callback callback)
    • process

      protected org.eclipse.jetty.util.IteratingCallback.Action process() throws Throwable
      Specified by:
      process in class org.eclipse.jetty.util.IteratingCallback
      Throws:
      Throwable
    • onSuccess

      protected void onSuccess()
      Overrides:
      onSuccess in class org.eclipse.jetty.util.IteratingCallback
    • onCompleteFailure

      protected void onCompleteFailure(Throwable failure)
      Overrides:
      onCompleteFailure in class org.eclipse.jetty.util.IteratingCallback
    • onWritePossible

      public void onWritePossible()
      Specified by:
      onWritePossible in interface jakarta.servlet.WriteListener
    • onError

      public void onError(Throwable failure)
      Specified by:
      onError in interface jakarta.servlet.WriteListener
    • getInvocationType

      public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()
      Specified by:
      getInvocationType in interface org.eclipse.jetty.util.thread.Invocable