Restoring access to HTTP/2 decoder's listener.
Motivation: This was lost in recent changes, just adding it back in. Modifications: Added listener() accessor to Http2ConnectionDecoder and the default impl. Result: The Http2FrameListener can be obtained from the decoder.
This commit is contained in:
parent
1429543436
commit
034699268c
@ -117,6 +117,11 @@ public class DefaultHttp2ConnectionDecoder implements Http2ConnectionDecoder {
|
||||
return connection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Http2FrameListener listener() {
|
||||
return listener;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean prefaceReceived() {
|
||||
return prefaceReceived;
|
||||
|
@ -71,6 +71,11 @@ public interface Http2ConnectionDecoder extends Closeable {
|
||||
*/
|
||||
Http2Connection connection();
|
||||
|
||||
/**
|
||||
* Provides direct access to the underlying frame listener.
|
||||
*/
|
||||
Http2FrameListener listener();
|
||||
|
||||
/**
|
||||
* Called by the {@link Http2ConnectionHandler} to decode the next frame from the input buffer.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user