Package org.eclipse.jetty.client
Class HttpExchange
java.lang.Object
org.eclipse.jetty.client.HttpExchange
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HttpChannel
private final HttpDestination
private final List<Response.ResponseListener>
private static final Logger
private final HttpRequest
private Throwable
private HttpExchange.State
private final HttpResponse
private Throwable
private HttpExchange.State
-
Constructor Summary
ConstructorsConstructorDescriptionHttpExchange
(HttpDestination destination, HttpRequest request, List<Response.ResponseListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) boolean
associate
(HttpChannel channel) Associates the givenchannel
to this exchange.private boolean
completeRequest
(Throwable failure) private boolean
completeResponse
(Throwable failure) (package private) void
disassociate
(HttpChannel channel) private HttpChannel
private void
notifyFailureComplete
(Throwable failure) void
boolean
requestComplete
(Throwable failure) void
boolean
responseComplete
(Throwable failure) toString()
-
Field Details
-
LOG
-
destination
-
request
-
listeners
-
response
-
requestState
-
responseState
-
_channel
-
requestFailure
-
responseFailure
-
-
Constructor Details
-
HttpExchange
public HttpExchange(HttpDestination destination, HttpRequest request, List<Response.ResponseListener> listeners)
-
-
Method Details
-
getConversation
-
getRequest
-
getRequestFailure
-
getResponseListeners
-
getResponse
-
getResponseFailure
-
associate
Associates the given
channel
to this exchange.Works in strict collaboration with
HttpChannel.associate(HttpExchange)
.- Parameters:
channel
- the channel to associate to this exchange- Returns:
- true if the channel could be associated, false otherwise
-
disassociate
-
getHttpChannel
-
requestComplete
-
completeRequest
-
responseComplete
-
completeResponse
-
terminateRequest
-
terminateResponse
-
abort
-
notifyFailureComplete
-
resetResponse
public void resetResponse() -
proceed
-
toString
-