Home / Function/ setApplicationProtocols() — netty Function Reference

setApplicationProtocols() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  981cc28d_23b6_7c10_859b_e115f56f6513["setApplicationProtocols()"]
  9ce2ca62_8327_82fd_ae99_528b2f7562c1["JdkAlpnSslUtils"]
  981cc28d_23b6_7c10_859b_e115f56f6513 -->|defined in| 9ce2ca62_8327_82fd_ae99_528b2f7562c1
  style 981cc28d_23b6_7c10_859b_e115f56f6513 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/JdkAlpnSslUtils.java lines 142–154

    static void setApplicationProtocols(SSLEngine engine, List<String> supportedProtocols) {
        SSLParameters parameters = engine.getSSLParameters();

        String[] protocolArray = supportedProtocols.toArray(EmptyArrays.EMPTY_STRINGS);
        try {
            SET_APPLICATION_PROTOCOLS.invoke(parameters, new Object[]{protocolArray});
        } catch (UnsupportedOperationException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new IllegalStateException(ex);
        }
        engine.setSSLParameters(parameters);
    }

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/JdkAlpnSslUtils.java.
Where is setApplicationProtocols() defined?
setApplicationProtocols() is defined in handler/src/main/java/io/netty/handler/ssl/JdkAlpnSslUtils.java at line 142.

Analyze Your Own Codebase

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

Try Supermodel Free