Class HttpExchange
java.lang.Object
org.eclipse.jetty.client.transport.HttpExchange
- All Implemented Interfaces:
CyclicTimeouts.Expirable
-
Constructor Summary
ConstructorDescriptionHttpExchange
(HttpDestination destination, HttpRequest request) HttpExchange
(HttpDestination destination, HttpRequest request, ResponseListeners listeners) -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
Returns the expiration time in nanoseconds.boolean
void
boolean
requestComplete
(Throwable failure) void
boolean
responseComplete
(Throwable failure) toString()
-
Constructor Details
-
HttpExchange
-
HttpExchange
-
-
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
-
isResponseComplete
public boolean isResponseComplete() -
responseComplete
-
terminateRequest
-
terminateResponse
-
abort
-
resetResponse
public void resetResponse() -
proceed
-
toString
-