sslHandlerReplaced() — netty Function Reference
Architecture documentation for the sslHandlerReplaced() function in OptionalSslHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2f29ebcc_6751_c0b1_26c1_b55ab552f9be["sslHandlerReplaced()"] 3376e436_30c5_3354_11dc_446e9998cd73["OptionalSslHandlerTest"] 2f29ebcc_6751_c0b1_26c1_b55ab552f9be -->|defined in| 3376e436_30c5_3354_11dc_446e9998cd73 style 2f29ebcc_6751_c0b1_26c1_b55ab552f9be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java lines 89–110
@Test
public void sslHandlerReplaced() throws Exception {
final SslHandler sslHandler = Mockito.mock(SslHandler.class);
OptionalSslHandler handler = new OptionalSslHandler(sslContext) {
@Override
protected SslHandler newSslHandler(ChannelHandlerContext context, SslContext sslContext) {
return sslHandler;
}
@Override
protected String newSslHandlerName() {
return SSL_HANDLER_NAME;
}
};
final ByteBuf payload = Unpooled.wrappedBuffer(new byte[] { 22, 3, 1, 0, 5 });
try {
handler.decode(context, payload, null);
verify(pipeline).replace(handler, SSL_HANDLER_NAME, sslHandler);
} finally {
payload.release();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sslHandlerReplaced() do?
sslHandlerReplaced() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java.
Where is sslHandlerReplaced() defined?
sslHandlerReplaced() is defined in handler/src/test/java/io/netty/handler/ssl/OptionalSslHandlerTest.java at line 89.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free