GeezerVison is showing github.com — Add ChannelOutboundInvoker.register(...) and ChannelOutboundHandler.r… · netty/netty@199733e
File treeExpand file treeCollapse file tree Open diff view settings main/java/io/netty/handler/codec/http2 test/java/io/netty/handler/codec/http2
codec-http3/src/main/java/io/netty/handler/codec/http3 codec-http/src/main/java/io/netty/handler/codec handler-proxy/src/main/java/io/netty/handler/proxy handler/src/main/java/io/netty/handler/ssl microbench/src/main/java/io/netty/microbench/channel test/java/io/netty/channel
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/HttpClientUpgradeHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -121,6 +121,11 @@ public HttpClientUpgradeHandler(SourceCodec sourceCodec, UpgradeCodec upgradeCod | 121 | 121 | this.upgradeCodec = ObjectUtil.checkNotNull(upgradeCodec, "upgradeCodec"); | 122 | 122 | } | 123 | 123 |
| | 124 | + @Override | | 125 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 126 | + ctx.register(promise); | | 127 | + } | | 128 | + | 124 | 129 | @Override | 125 | 130 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { | 126 | 131 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketProtocolHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -154,6 +154,11 @@ protected WebSocketHandshakeException buildHandshakeException(String message) { | 154 | 154 | return new WebSocketHandshakeException(message); | 155 | 155 | } | 156 | 156 |
| | 157 | + @Override | | 158 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 159 | + ctx.register(promise); | | 160 | + } | | 161 | + | 157 | 162 | @Override | 158 | 163 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, | 159 | 164 | ChannelPromise promise) throws Exception { | |
Collapse file Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -174,6 +174,11 @@ public void channelReadComplete(ChannelHandlerContext ctx) throws Exception { | 174 | 174 | super.channelReadComplete(ctx); | 175 | 175 | } | 176 | 176 |
| | 177 | + @Override | | 178 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 179 | + ctx.register(promise); | | 180 | + } | | 181 | + | 177 | 182 | @Override | 178 | 183 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { | 179 | 184 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -451,6 +451,11 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) t | 451 | 451 | byteDecoder.decode(ctx, in, out); | 452 | 452 | } | 453 | 453 |
| | 454 | + @Override | | 455 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 456 | + ctx.register(promise); | | 457 | + } | | 458 | + | 454 | 459 | @Override | 455 | 460 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { | 456 | 461 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameInboundWriter.java +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -225,6 +225,16 @@ public <T> boolean hasAttr(AttributeKey<T> key) { | 225 | 225 | return channel.hasAttr(key); | 226 | 226 | } | 227 | 227 |
| | 228 | + @Override | | 229 | + public ChannelFuture register(ChannelPromise promise) { | | 230 | + return channel.register(promise); | | 231 | + } | | 232 | + | | 233 | + @Override | | 234 | + public ChannelFuture register() { | | 235 | + return channel.register(); | | 236 | + } | | 237 | + | 228 | 238 | @Override | 229 | 239 | public ChannelFuture bind(SocketAddress localAddress) { | 230 | 240 | return channel.bind(localAddress); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameCodec.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -602,6 +602,11 @@ private static void unsupported(ChannelPromise promise) { | 602 | 602 | promise.setFailure(new UnsupportedOperationException()); | 603 | 603 | } | 604 | 604 |
| | 605 | + @Override | | 606 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) { | | 607 | + ctx.register(promise); | | 608 | + } | | 609 | + | 605 | 610 | @Override | 606 | 611 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) { | 607 | 612 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameToHttpObjectCodec.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -260,6 +260,11 @@ public void flush(ChannelHandlerContext ctx) { | 260 | 260 | ctx.flush(); | 261 | 261 | } | 262 | 262 |
| | 263 | + @Override | | 264 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 265 | + ctx.register(promise); | | 266 | + } | | 267 | + | 263 | 268 | @Override | 264 | 269 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) { | 265 | 270 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameTypeDuplexValidationHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,6 +54,11 @@ public void flush(ChannelHandlerContext ctx) { | 54 | 54 | ctx.flush(); | 55 | 55 | } | 56 | 56 |
| | 57 | + @Override | | 58 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) { | | 59 | + ctx.register(promise); | | 60 | + } | | 61 | + | 57 | 62 | @Override | 58 | 63 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) { | 59 | 64 | ctx.bind(localAddress, promise); | |
Collapse file Copy file name to clipboardExpand all lines: handler-proxy/src/main/java/io/netty/handler/proxy/HttpProxyHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -299,6 +299,11 @@ public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exceptio | 299 | 299 | codec.channelWritabilityChanged(ctx); | 300 | 300 | } | 301 | 301 |
| | 302 | + @Override | | 303 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 304 | + codec.register(ctx, promise); | | 305 | + } | | 306 | + | 302 | 307 | @Override | 303 | 308 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, | 304 | 309 | ChannelPromise promise) throws Exception { | |
Collapse file Copy file name to clipboardExpand all lines: handler/src/main/java/io/netty/handler/ssl/SslClientHelloHandler.java +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -306,6 +306,11 @@ public void read(ChannelHandlerContext ctx) throws Exception { | 306 | 306 | } | 307 | 307 | } | 308 | 308 |
| | 309 | + @Override | | 310 | + public void register(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception { | | 311 | + ctx.register(promise); | | 312 | + } | | 313 | + | 309 | 314 | @Override | 310 | 315 | public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { | 311 | 316 | ctx.bind(localAddress, promise); | |
|