Package org.eclipse.jetty.client
Class HttpChannel
java.lang.Object
org.eclipse.jetty.client.HttpChannel
- Direct Known Subclasses:
HttpChannelOverHTTP
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpDestination
private HttpExchange
private final TimeoutCompleteListener
protected static final Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
abort
(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure) boolean
abortResponse
(HttpExchange exchange, Throwable failure) boolean
associate
(HttpExchange exchange) Associates the givenexchange
to this channel in order to be sent over the network.void
destroy()
boolean
disassociate
(HttpExchange exchange) void
exchangeTerminated
(HttpExchange exchange, Result result) exchangeTerminating
(HttpExchange exchange, Result result) protected abstract HttpReceiver
protected abstract HttpSender
void
proceed
(HttpExchange exchange, Throwable failure) abstract void
release()
void
send()
abstract void
send
(HttpExchange exchange) toString()
-
Field Details
-
LOG
-
_destination
-
_totalTimeout
-
_exchange
-
-
Constructor Details
-
HttpChannel
-
-
Method Details
-
destroy
public void destroy() -
getHttpDestination
-
associate
Associates the given
exchange
to this channel in order to be sent over the network.If the association is successful, the exchange can be sent. Otherwise, the channel must be disposed because whoever terminated the exchange did not do it - it did not have the channel yet.
- Parameters:
exchange
- the exchange to associate- Returns:
- true if the association was successful, false otherwise
-
disassociate
-
getHttpExchange
-
getHttpSender
-
getHttpReceiver
-
send
public void send() -
send
-
release
public abstract void release() -
proceed
-
abort
-
abortResponse
-
exchangeTerminating
-
exchangeTerminated
-
toString
-