GeezerVison is showing github.com — Enable extension of Http3ClientConnectionHandler to support higher-le… · skyguard1/netty@0edad8e
File tree
Expand file treeCollapse file tree
Open diff view settings
codec-http3/src/main/java/io/netty/handler/codec/http3
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: codec-http3/src/main/java/io/netty/handler/codec/http3/Http3ClientConnectionHandler.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
22 | 22 |
|
23 | 23 | import java.util.function.LongFunction; |
24 | 24 |
|
25 | | -public final class Http3ClientConnectionHandler extends Http3ConnectionHandler { |
| 25 | +public class Http3ClientConnectionHandler extends Http3ConnectionHandler { |
26 | 26 |
|
27 | 27 | private final LongFunction<ChannelHandler> pushStreamHandlerFactory; |
28 | 28 |
|
@@ -89,15 +89,15 @@ public Http3ClientConnectionHandler(@Nullable ChannelHandler inboundControlStrea |
89 | 89 | } |
90 | 90 |
|
91 | 91 | @Override |
92 | | - void initBidirectionalStream(ChannelHandlerContext ctx, QuicStreamChannel channel) { |
| 92 | + protected void initBidirectionalStream(ChannelHandlerContext ctx, QuicStreamChannel channel) { |
93 | 93 | // See https://datatracker.ietf.org/doc/html/rfc9114#name-bidirectional-streams |
94 | 94 | // https://datatracker.ietf.org/doc/html/rfc9114#section-6.1-3 |
95 | 95 | Http3CodecUtils.connectionError(ctx, Http3ErrorCode.H3_STREAM_CREATION_ERROR, |
96 | 96 | "Server initiated bidirectional streams are not allowed", true); |
97 | 97 | } |
98 | 98 |
|
99 | 99 | @Override |
100 | | - void initUnidirectionalStream(ChannelHandlerContext ctx, QuicStreamChannel streamChannel) { |
| 100 | + protected void initUnidirectionalStream(ChannelHandlerContext ctx, QuicStreamChannel streamChannel) { |
101 | 101 | final long maxTableCapacity = maxTableCapacity(); |
102 | 102 | streamChannel.pipeline().addLast( |
103 | 103 | new Http3UnidirectionalStreamInboundClientHandler(codecFactory, nonStandardSettingsValidator, |
|
Collapse file
Copy file name to clipboardExpand all lines: pom.xml +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1302 | 1302 | </revapi.filter> |
1303 | 1303 | <revapi.differences> |
1304 | 1304 | <differences> |
| 1305 | + <item> |
| 1306 | + <ignore>true</ignore> |
| 1307 | + <code>java.method.visibilityIncreased</code> |
| 1308 | + <new>method void io.netty.handler.codec.http3.Http3ClientConnectionHandler::initBidirectionalStream(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.quic.QuicStreamChannel)</new> |
| 1309 | + <justification>Allow applications to customize initialization of bidirectional streams by subclassing.</justification> |
| 1310 | + </item> |
| 1311 | + <item> |
| 1312 | + <ignore>true</ignore> |
| 1313 | + <code>java.method.visibilityIncreased</code> |
| 1314 | + <new>method void io.netty.handler.codec.http3.Http3ClientConnectionHandler::initUnidirectionalStream(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.quic.QuicStreamChannel)</new> |
| 1315 | + <justification>Allow applications to customize initialization of unidirectional streams by subclassing.</justification> |
| 1316 | + </item> |
1305 | 1317 | <item> |
1306 | 1318 | <ignore>true</ignore> |
1307 | 1319 | <code>java.class.externalClassExposedInAPI</code> |
|