Home / Function/ match() — netty Function Reference

match() — netty Function Reference

Architecture documentation for the match() function in ReferenceCountedOpenSslServerContext.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aee45296_d4c1_3d75_2931_4cbb0ddc8cc7["match()"]
  1b01d41d_4ba1_4997_e3ab_aa5b8c3038d6["OpenSslSniHostnameMatcher"]
  aee45296_d4c1_3d75_2931_4cbb0ddc8cc7 -->|defined in| 1b01d41d_4ba1_4997_e3ab_aa5b8c3038d6
  style aee45296_d4c1_3d75_2931_4cbb0ddc8cc7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslServerContext.java lines 300–309

        @Override
        public boolean match(long ssl, String hostname) {
            ReferenceCountedOpenSslEngine engine = engines.get(ssl);
            if (engine != null) {
                // TODO: In the next release of tcnative we should pass the byte[] directly in and not use a String.
                return engine.checkSniHostnameMatch(hostname);
            }
            logger.warn("No ReferenceCountedOpenSslEngine found for SSL pointer: {}", ssl);
            return false;
        }

Domain

Subdomains

Frequently Asked Questions

What does match() do?
match() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslServerContext.java.
Where is match() defined?
match() is defined in handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslServerContext.java at line 300.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free