Package org.eclipse.jetty.client
Class HttpExchange
- java.lang.Object
-
- org.eclipse.jetty.client.HttpExchange
-
- All Implemented Interfaces:
CyclicTimeouts.Expirable
@Deprecated(since="2021-05-27") public class HttpExchange extends java.lang.Object implements CyclicTimeouts.Expirable
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description HttpExchange(HttpDestination destination, HttpRequest request, java.util.List<Response.ResponseListener> listeners)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
abort(java.lang.Throwable failure)
Deprecated.HttpConversation
getConversation()
Deprecated.long
getExpireNanoTime()
Deprecated.Returns the expiration time in nanoseconds.HttpRequest
getRequest()
Deprecated.java.lang.Throwable
getRequestFailure()
Deprecated.HttpResponse
getResponse()
Deprecated.java.lang.Throwable
getResponseFailure()
Deprecated.java.util.List<Response.ResponseListener>
getResponseListeners()
Deprecated.void
proceed(java.lang.Throwable failure)
Deprecated.boolean
requestComplete(java.lang.Throwable failure)
Deprecated.void
resetResponse()
Deprecated.boolean
responseComplete(java.lang.Throwable failure)
Deprecated.Result
terminateRequest()
Deprecated.Result
terminateResponse()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
HttpExchange
public HttpExchange(HttpDestination destination, HttpRequest request, java.util.List<Response.ResponseListener> listeners)
Deprecated.
-
-
Method Detail
-
getConversation
public HttpConversation getConversation()
Deprecated.
-
getRequest
public HttpRequest getRequest()
Deprecated.
-
getRequestFailure
public java.lang.Throwable getRequestFailure()
Deprecated.
-
getResponseListeners
public java.util.List<Response.ResponseListener> getResponseListeners()
Deprecated.
-
getResponse
public HttpResponse getResponse()
Deprecated.
-
getResponseFailure
public java.lang.Throwable getResponseFailure()
Deprecated.
-
getExpireNanoTime
public long getExpireNanoTime()
Deprecated.Description copied from interface:CyclicTimeouts.Expirable
Returns the expiration time in nanoseconds.
The value to return must be calculated taking into account
System.nanoTime()
, for example:expireNanoTime = System.nanoTime() + timeoutNanos
Returning
Long.MAX_VALUE
indicates that this entity does not expire.- Specified by:
getExpireNanoTime
in interfaceCyclicTimeouts.Expirable
- Returns:
- the expiration time in nanoseconds, or
Long.MAX_VALUE
if this entity does not expire
-
requestComplete
public boolean requestComplete(java.lang.Throwable failure)
Deprecated.
-
responseComplete
public boolean responseComplete(java.lang.Throwable failure)
Deprecated.
-
terminateRequest
public Result terminateRequest()
Deprecated.
-
terminateResponse
public Result terminateResponse()
Deprecated.
-
abort
public boolean abort(java.lang.Throwable failure)
Deprecated.
-
resetResponse
public void resetResponse()
Deprecated.
-
proceed
public void proceed(java.lang.Throwable failure)
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-