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
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
abort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure)
Deprecated.boolean
abortResponse(HttpExchange exchange, Throwable failure)
Deprecated.boolean
associate(HttpExchange exchange)
Deprecated.Associates the givenexchange
to this channel in order to be sent over the network.void
destroy()
Deprecated.boolean
disassociate(HttpExchange exchange)
Deprecated.void
exchangeTerminated(HttpExchange exchange, Result result)
Deprecated.Result
exchangeTerminating(HttpExchange exchange, Result result)
Deprecated.long
getExpireNanoTime()
Deprecated.Returns the expiration time in nanoseconds.HttpDestination
getHttpDestination()
Deprecated.HttpExchange
getHttpExchange()
Deprecated.void
proceed(HttpExchange exchange, Throwable failure)
Deprecated.abstract void
release()
Deprecated.void
send()
Deprecated.abstract void
send(HttpExchange exchange)
Deprecated.String
toString()
Deprecated.
-
-
-
Method Detail
-
destroy
public void destroy()
Deprecated.
-
getHttpDestination
public HttpDestination getHttpDestination()
Deprecated.
-
associate
public boolean associate(HttpExchange exchange)
Deprecated.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
public boolean disassociate(HttpExchange exchange)
Deprecated.
-
getHttpExchange
public HttpExchange getHttpExchange()
Deprecated.
-
getExpireNanoTime
public long getExpireNanoTime()
Deprecated.Description copied from interface:CyclicTimeouts.Expirable
Returns the expiration time in nanoseconds.
The value to return must be calculated taking into account
System.nanoTime()
, for example:expireNanoTime = System.nanoTime() + 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
-
send
public void send()
Deprecated.
-
send
public abstract void send(HttpExchange exchange)
Deprecated.
-
release
public abstract void release()
Deprecated.
-
proceed
public void proceed(HttpExchange exchange, Throwable failure)
Deprecated.
-
abort
public boolean abort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure)
Deprecated.
-
abortResponse
public boolean abortResponse(HttpExchange exchange, Throwable failure)
Deprecated.
-
exchangeTerminating
public Result exchangeTerminating(HttpExchange exchange, Result result)
Deprecated.
-
exchangeTerminated
public void exchangeTerminated(HttpExchange exchange, Result result)
Deprecated.
-
-