testServerHasNoStaple() — netty Function Reference
Architecture documentation for the testServerHasNoStaple() function in OcspTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD abfa4224_960e_64cc_b59b_b22c04bd5d9c["testServerHasNoStaple()"] 9135fc19_1676_c0ae_d77a_3a05e26293b5["OcspTest"] abfa4224_960e_64cc_b59b_b22c04bd5d9c -->|defined in| 9135fc19_1676_c0ae_d77a_3a05e26293b5 2acdefc4_f8f0_f7f6_b00e_d542b230960f["testServerHasNoStapleOpenSsl()"] 2acdefc4_f8f0_f7f6_b00e_d542b230960f -->|calls| abfa4224_960e_64cc_b59b_b22c04bd5d9c 6bec1b0d_759b_90d0_8e5e_43f26f2a9204["testServerHasNoStapleOpenSslRefCnt()"] 6bec1b0d_759b_90d0_8e5e_43f26f2a9204 -->|calls| abfa4224_960e_64cc_b59b_b22c04bd5d9c 6204fe7b_d6db_03b5_bd30_29a19feb3fea["TestClientOcspContext()"] abfa4224_960e_64cc_b59b_b22c04bd5d9c -->|calls| 6204fe7b_d6db_03b5_bd30_29a19feb3fea 3821d9ad_f922_8022_9adf_f69ae9d2fdb0["handshake()"] abfa4224_960e_64cc_b59b_b22c04bd5d9c -->|calls| 3821d9ad_f922_8022_9adf_f69ae9d2fdb0 2e9c932f_406b_6341_23d9_721ad7c63231["response()"] abfa4224_960e_64cc_b59b_b22c04bd5d9c -->|calls| 2e9c932f_406b_6341_23d9_721ad7c63231 style abfa4224_960e_64cc_b59b_b22c04bd5d9c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java lines 279–309
private static void testServerHasNoStaple(SslProvider sslProvider) throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
ChannelInboundHandlerAdapter serverHandler = new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
ctx.writeAndFlush(Unpooled.wrappedBuffer("Hello, World!".getBytes()));
ctx.fireChannelActive();
}
};
ChannelInboundHandlerAdapter clientHandler = new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
try {
ReferenceCountUtil.release(msg);
} finally {
latch.countDown();
}
}
};
byte[] response = null;
TestClientOcspContext callback = new TestClientOcspContext(true);
handshake(sslProvider, latch, serverHandler, response, clientHandler, callback);
byte[] actual = callback.response();
assertNull(response);
assertNull(actual);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testServerHasNoStaple() do?
testServerHasNoStaple() is a function in the netty codebase, defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java.
Where is testServerHasNoStaple() defined?
testServerHasNoStaple() is defined in handler-ssl-ocsp/src/test/java/io/netty/handler/ssl/ocsp/OcspTest.java at line 279.
What does testServerHasNoStaple() call?
testServerHasNoStaple() calls 3 function(s): TestClientOcspContext, handshake, response.
What calls testServerHasNoStaple()?
testServerHasNoStaple() is called by 2 function(s): testServerHasNoStapleOpenSsl, testServerHasNoStapleOpenSslRefCnt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free