Class HttpReceiverOverHTTP2
java.lang.Object
org.eclipse.jetty.client.transport.HttpReceiver
org.eclipse.jetty.http2.client.transport.internal.HttpReceiverOverHTTP2
- All Implemented Interfaces:
HTTP2Channel.Client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfailAndClose(Throwable failure) Fails the receiver and closes the underlying stream.protected HttpChannelOverHTTP2protected voidPrepare for the next step after an interim response was read.onReset(ResetFrame frame, Callback callback) onTimeout(TimeoutException failure, Promise<Boolean> promise) read(boolean fillInterestIfNeeded) Reads a chunk of data.Methods inherited from class org.eclipse.jetty.client.transport.HttpReceiver
abort, dispose, getHttpDestination, getHttpExchange, hasContent, isFailed, reset, responseBegin, responseContentAvailable, responseFailure, responseHeader, responseHeaders, responseSuccess, storeCookie, toString
-
Constructor Details
-
HttpReceiverOverHTTP2
-
-
Method Details
-
onInterim
protected void onInterim()Description copied from class:HttpReceiverPrepare for the next step after an interim response was read.- Specified by:
onInterimin classHttpReceiver
-
read
Description copied from class:HttpReceiverReads a chunk of data.If no data was read,
nullis returned and iffillInterestIfNeededistruethen fill interest is registered.The returned chunk of data may be the last one or an error exactly like
Content.Source.read()specifies.- Specified by:
readin classHttpReceiver- Parameters:
fillInterestIfNeeded- true to register for fill interest when no data was read.- Returns:
- the chunk of data that was read, or
nullif nothing was read.
-
failAndClose
Description copied from class:HttpReceiverFails the receiver and closes the underlying stream.- Specified by:
failAndClosein classHttpReceiver- Parameters:
failure- the failure.
-
getHttpChannel
- Overrides:
getHttpChannelin classHttpReceiver
-
onDataAvailable
- Specified by:
onDataAvailablein interfaceHTTP2Channel.Client
-
onReset
- Specified by:
onResetin interfaceHTTP2Channel.Client
-
onTimeout
- Specified by:
onTimeoutin interfaceHTTP2Channel.Client
-
onFailure
- Specified by:
onFailurein interfaceHTTP2Channel.Client
-