java.lang.Object
org.eclipse.jetty.client.HttpChannel
- All Implemented Interfaces:
org.eclipse.jetty.io.CyclicTimeouts.Expirable
- Direct Known Subclasses:
HttpChannelOverHTTP
public abstract class HttpChannel
extends Object
implements org.eclipse.jetty.io.CyclicTimeouts.Expirable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure, org.eclipse.jetty.util.Promise<Boolean> promise) voidabortResponse(HttpExchange exchange, Throwable failure, org.eclipse.jetty.util.Promise<Boolean> promise) booleanassociate(HttpExchange exchange) Associates the givenexchangeto this channel in order to be sent over the network.voiddestroy()booleandisassociate(HttpExchange exchange) voidexchangeTerminated(HttpExchange exchange, Result result) exchangeTerminating(HttpExchange exchange, Result result) longprotected abstract HttpReceiverprotected abstract HttpSendervoidproceed(HttpExchange exchange, Throwable failure) abstract voidrelease()voidsend()abstract voidsend(HttpExchange exchange) toString()
-
Constructor Details
-
HttpChannel
-
-
Method Details
-
destroy
public void destroy() -
getHttpDestination
-
associate
Associates the given
exchangeto 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
-
getExpireNanoTime
public long getExpireNanoTime()- Specified by:
getExpireNanoTimein interfaceorg.eclipse.jetty.io.CyclicTimeouts.Expirable
-
getHttpSender
-
getHttpReceiver
-
send
public void send() -
send
-
release
public abstract void release() -
proceed
-
abort
public void abort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure, org.eclipse.jetty.util.Promise<Boolean> promise) -
abortResponse
public void abortResponse(HttpExchange exchange, Throwable failure, org.eclipse.jetty.util.Promise<Boolean> promise) -
exchangeTerminating
-
exchangeTerminated
-
toString
-