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:
nmittler 2014-10-09 12:32:26 -07:00
parent 1429543436
commit 034699268c
2 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,11 @@ public class DefaultHttp2ConnectionDecoder implements Http2ConnectionDecoder {
return connection; return connection;
} }
@Override
public Http2FrameListener listener() {
return listener;
}
@Override @Override
public boolean prefaceReceived() { public boolean prefaceReceived() {
return prefaceReceived; return prefaceReceived;

View File

@ -71,6 +71,11 @@ public interface Http2ConnectionDecoder extends Closeable {
*/ */
Http2Connection connection(); 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. * Called by the {@link Http2ConnectionHandler} to decode the next frame from the input buffer.
*/ */