Home / Function/ getHandshakeApplicationProtocolSelector() — netty Function Reference

getHandshakeApplicationProtocolSelector() — netty Function Reference

Architecture documentation for the getHandshakeApplicationProtocolSelector() function in BouncyCastleAlpnSslUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  73c61fdf_beb3_09f6_77a0_50b91375bddd["getHandshakeApplicationProtocolSelector()"]
  49900df4_31cd_ac6b_00c5_ebef487f1fd0["BouncyCastleAlpnSslUtils"]
  73c61fdf_beb3_09f6_77a0_50b91375bddd -->|defined in| 49900df4_31cd_ac6b_00c5_ebef487f1fd0
  style 73c61fdf_beb3_09f6_77a0_50b91375bddd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/BouncyCastleAlpnSslUtils.java lines 222–237

    static BiFunction<SSLEngine, List<String>, String> getHandshakeApplicationProtocolSelector(SSLEngine engine) {
        try {
            final Object selector = GET_HANDSHAKE_APPLICATION_PROTOCOL_SELECTOR.invoke(engine);
            return (sslEngine, strings) -> {
                try {
                    return (String) BC_APPLICATION_PROTOCOL_SELECTOR_SELECT.invoke(selector, sslEngine, strings);
                } catch (Exception e) {
                    throw new RuntimeException("Could not call getHandshakeApplicationProtocolSelector", e);
                }
            };
        } catch (UnsupportedOperationException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new IllegalStateException(ex);
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free