Class HttpExchange

java.lang.Object
org.eclipse.jetty.client.transport.HttpExchange
All Implemented Interfaces:
CyclicTimeouts.Expirable

public class HttpExchange extends Object implements CyclicTimeouts.Expirable
  • Constructor Details

  • Method Details

    • getHttpDestination

      public HttpDestination getHttpDestination()
    • getConversation

      public HttpConversation getConversation()
    • getRequest

      public HttpRequest getRequest()
    • getRequestFailure

      public Throwable getRequestFailure()
    • getResponseListeners

      public ResponseListeners getResponseListeners()
    • getResponse

      public HttpResponse getResponse()
    • getResponseFailure

      public Throwable getResponseFailure()
    • getExpireNanoTime

      public long getExpireNanoTime()
      Description copied from interface: CyclicTimeouts.Expirable

      Returns the expiration time in nanoseconds.

      The value to return must be calculated taking into account the current nanoTime, for example:

      expireNanoTime = NanoTime.now() + timeoutNanos

      Returning Long.MAX_VALUE indicates that this entity does not expire.

      Specified by:
      getExpireNanoTime in interface CyclicTimeouts.Expirable
      Returns:
      the expiration time in nanoseconds, or Long.MAX_VALUE if this entity does not expire
    • requestComplete

      public boolean requestComplete(Throwable failure)
    • isResponseComplete

      public boolean isResponseComplete()
    • responseComplete

      public boolean responseComplete(Throwable failure)
    • terminateRequest

      public Result terminateRequest()
    • terminateResponse

      public Result terminateResponse()
    • abort

      public void abort(Throwable failure, Promise<Boolean> promise)
    • resetResponse

      public void resetResponse()
    • proceed

      public void proceed(Runnable proceedAction, Throwable failure)
    • toString

      public String toString()
      Overrides:
      toString in class Object