Package org.eclipse.jetty.client
Class HttpChannel
java.lang.Object
org.eclipse.jetty.client.HttpChannel
- All Implemented Interfaces:
CyclicTimeouts.Expirable
- Direct Known Subclasses:
HttpChannelOverHTTP
@Deprecated(since="2021-05-27")
public abstract class HttpChannel
extends Object
implements CyclicTimeouts.Expirable
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanabort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure) Deprecated.booleanabortResponse(HttpExchange exchange, Throwable failure) Deprecated.booleanassociate(HttpExchange exchange) Deprecated.Associates the givenexchangeto this channel in order to be sent over the network.voiddestroy()Deprecated.booleandisassociate(HttpExchange exchange) Deprecated.voidexchangeTerminated(HttpExchange exchange, Result result) Deprecated.exchangeTerminating(HttpExchange exchange, Result result) Deprecated.longDeprecated.Returns the expiration time in nanoseconds.Deprecated.Deprecated.voidproceed(HttpExchange exchange, Throwable failure) Deprecated.abstract voidrelease()Deprecated.voidsend()Deprecated.abstract voidsend(HttpExchange exchange) Deprecated.toString()Deprecated.
-
Method Details
-
destroy
public void destroy()Deprecated. -
getHttpDestination
Deprecated. -
associate
Deprecated.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
Deprecated. -
getHttpExchange
Deprecated. -
getExpireNanoTime
public long getExpireNanoTime()Deprecated.Description copied from interface:CyclicTimeouts.ExpirableReturns the expiration time in nanoseconds.
The value to return must be calculated taking into account
System.nanoTime(), for example:expireNanoTime = System.nanoTime() + timeoutNanosReturning
Long.MAX_VALUEindicates that this entity does not expire.- Specified by:
getExpireNanoTimein interfaceCyclicTimeouts.Expirable- Returns:
- the expiration time in nanoseconds, or
Long.MAX_VALUEif this entity does not expire
-
send
public void send()Deprecated. -
send
Deprecated. -
release
public abstract void release()Deprecated. -
proceed
Deprecated. -
abort
Deprecated. -
abortResponse
Deprecated. -
exchangeTerminating
Deprecated. -
exchangeTerminated
Deprecated. -
toString
Deprecated.
-