handlerReplaced() — netty Function Reference
Architecture documentation for the handlerReplaced() function in OptionalSslHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 484958e3_58bf_6606_6f89_b5a422bd50ad["handlerReplaced()"] 3376e436_30c5_3354_11dc_446e9998cd73["OptionalSslHandlerTest"] 484958e3_58bf_6606_6f89_b5a422bd50ad -->|defined in| 3376e436_30c5_3354_11dc_446e9998cd73 style 484958e3_58bf_6606_6f89_b5a422bd50ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java lines 66–87
@Test
public void handlerReplaced() throws Exception {
final ChannelHandler nonSslHandler = Mockito.mock(ChannelHandler.class);
OptionalSslHandler handler = new OptionalSslHandler(sslContext) {
@Override
protected ChannelHandler newNonSslHandler(ChannelHandlerContext context) {
return nonSslHandler;
}
@Override
protected String newNonSslHandlerName() {
return HANDLER_NAME;
}
};
final ByteBuf payload = Unpooled.copiedBuffer("plaintext".getBytes());
try {
handler.decode(context, payload, null);
verify(pipeline).replace(handler, HANDLER_NAME, nonSslHandler);
} finally {
payload.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does handlerReplaced() do?
handlerReplaced() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java.
Where is handlerReplaced() defined?
handlerReplaced() is defined in handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java at line 66.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free