Package org.eclipse.jetty.client
Class HttpExchange
java.lang.Object
org.eclipse.jetty.client.HttpExchange
- All Implemented Interfaces:
CyclicTimeouts.Expirable
-
Constructor Summary
ConstructorDescriptionHttpExchange
(HttpDestination destination, HttpRequest request, List<Response.ResponseListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Returns the expiration time in nanoseconds.void
boolean
requestComplete
(Throwable failure) void
boolean
responseComplete
(Throwable failure) toString()
-
Constructor Details
-
HttpExchange
public HttpExchange(HttpDestination destination, HttpRequest request, List<Response.ResponseListener> listeners)
-
-
Method Details
-
getHttpDestination
-
getConversation
-
getRequest
-
getRequestFailure
-
getResponseListeners
-
getResponse
-
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 interfaceCyclicTimeouts.Expirable
- Returns:
- the expiration time in nanoseconds, or
Long.MAX_VALUE
if this entity does not expire
-
requestComplete
-
responseComplete
-
terminateRequest
-
terminateResponse
-
abort
-
resetResponse
public void resetResponse() -
proceed
-
toString
-