public abstract class AbstractHttp2StreamDataReceiver extends Object implements Http2StreamListener
| Constructor and Description |
|---|
AbstractHttp2StreamDataReceiver() |
| Modifier and Type | Method and Description |
|---|---|
protected StreamData |
getStreamData(Connection connection,
io.netty.handler.codec.http2.Http2Stream stream) |
void |
onDataRead(Connection connection,
io.netty.handler.codec.http2.Http2Stream stream,
byte[] data,
boolean endOfStream)
callback for data receiving
|
void |
onHeadersRead(Connection connection,
io.netty.handler.codec.http2.Http2Stream stream,
io.netty.handler.codec.http2.Http2Headers headers,
boolean endOfStream)
callback for headers receiving
|
abstract void |
onStreamDataReceived(Connection connection,
io.netty.handler.codec.http2.Http2Stream stream,
StreamData streamData)
callback when receive the whole stream(stream is end).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonStreamErrorpublic void onDataRead(Connection connection, io.netty.handler.codec.http2.Http2Stream stream, byte[] data, boolean endOfStream)
Http2StreamListeneronDataRead in interface Http2StreamListenerconnection - connectionstream - streamdata - dataendOfStream - endOfStreampublic void onHeadersRead(Connection connection, io.netty.handler.codec.http2.Http2Stream stream, io.netty.handler.codec.http2.Http2Headers headers, boolean endOfStream)
Http2StreamListeneronHeadersRead in interface Http2StreamListenerconnection - connectionstream - streamheaders - headersendOfStream - endOfStreamprotected StreamData getStreamData(Connection connection, io.netty.handler.codec.http2.Http2Stream stream)
public abstract void onStreamDataReceived(Connection connection, io.netty.handler.codec.http2.Http2Stream stream, StreamData streamData)
connection - http2connectionstream - http2streamstreamData - cached headers and dataCopyright © 2019. All rights reserved.