Home / Class/ ApplicationProtocolUtil Class — netty Architecture

ApplicationProtocolUtil Class — netty Architecture

Architecture documentation for the ApplicationProtocolUtil class in ApplicationProtocolUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1e5b7889_d646_15ce_ab74_245556d049d4["ApplicationProtocolUtil"]
  2500d198_74d7_2e54_9723_6cc69dcbf97b["ApplicationProtocolUtil.java"]
  1e5b7889_d646_15ce_ab74_245556d049d4 -->|defined in| 2500d198_74d7_2e54_9723_6cc69dcbf97b
  9a1df207_3d27_e542_0442_60ade89cad99["ApplicationProtocolUtil()"]
  1e5b7889_d646_15ce_ab74_245556d049d4 -->|method| 9a1df207_3d27_e542_0442_60ade89cad99
  34625fab_ecea_3797_52fd_46d2f3f40f70["toList()"]
  1e5b7889_d646_15ce_ab74_245556d049d4 -->|method| 34625fab_ecea_3797_52fd_46d2f3f40f70

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/ApplicationProtocolUtil.java lines 26–65

final class ApplicationProtocolUtil {
    private static final int DEFAULT_LIST_SIZE = 2;

    private ApplicationProtocolUtil() {
    }

    static List<String> toList(Iterable<String> protocols) {
        return toList(DEFAULT_LIST_SIZE, protocols);
    }

    static List<String> toList(int initialListSize, Iterable<String> protocols) {
        if (protocols == null) {
            return null;
        }

        List<String> result = new ArrayList<String>(initialListSize);
        for (String p : protocols) {
            result.add(checkNonEmpty(p, "p"));
        }

        return checkNonEmpty(result, "result");
    }

    static List<String> toList(String... protocols) {
        return toList(DEFAULT_LIST_SIZE, protocols);
    }

    static List<String> toList(int initialListSize, String... protocols) {
        if (protocols == null) {
            return null;
        }

        List<String> result = new ArrayList<String>(initialListSize);
        for (String p : protocols) {
            result.add(checkNonEmpty(p, "p"));
        }

        return checkNonEmpty(result, "result");
    }
}

Frequently Asked Questions

What is the ApplicationProtocolUtil class?
ApplicationProtocolUtil is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/ApplicationProtocolUtil.java.
Where is ApplicationProtocolUtil defined?
ApplicationProtocolUtil is defined in handler/src/main/java/io/netty/handler/ssl/ApplicationProtocolUtil.java at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free