Home / Function/ setApplicationProtocols() — netty Function Reference

setApplicationProtocols() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/BouncyCastleAlpnSslUtils.java lines 165–179

    static void setApplicationProtocols(SSLEngine engine, List<String> supportedProtocols) {
        String[] protocolArray = supportedProtocols.toArray(EmptyArrays.EMPTY_STRINGS);
        try {
            SSLParameters bcSslParameters = engine.getSSLParameters();
            SET_APPLICATION_PROTOCOLS.invoke(bcSslParameters, new Object[]{protocolArray});
            engine.setSSLParameters(bcSslParameters);
        } catch (UnsupportedOperationException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new IllegalStateException(ex);
        }
        if (PlatformDependent.javaVersion() >= 9) {
            JdkAlpnSslUtils.setApplicationProtocols(engine, supportedProtocols);
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free