diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodecBuilder.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodecBuilder.java index 3a5a43f72a..59f43d8db5 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodecBuilder.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodecBuilder.java @@ -29,7 +29,16 @@ public class Http2FrameCodecBuilder extends private Http2FrameWriter frameWriter; - public Http2FrameCodecBuilder() { + /** + * Allows overriding behavior of existing builder. + *

+ * Users of this constructor are responsible for invoking {@link #server(boolean)} method or overriding + * {@link #isServer()} method to give the builder information if the {@link Http2Connection}(s) it creates are in + * server or client mode. + * + * @see AbstractHttp2ConnectionHandlerBuilder + */ + protected Http2FrameCodecBuilder() { } Http2FrameCodecBuilder(boolean server) {