@Override
    protected WebResourceSet createMainResourceSet() {
        final Path docBase = config.docBase();
        assert docBase.isAbsolute();

        final String docBaseStr = docBase.toString();
        getContext().setDocBase(docBaseStr);

        if (Files.isDirectory(docBase)) {
            return new DirResourceSet(this, "/", docBaseStr, "/");
        }

        final String jarRoot = config.jarRoot();
        if (jarRoot != null) { // If docBase is a JAR file
            if ("/".equals(jarRoot)) {
                return new JarResourceSet(this, "/", docBaseStr, "/");
            } else {
                return new JarSubsetResourceSet(this, "/", docBaseStr, "/", jarRoot);
            }
        }

        throw new IllegalArgumentException(sm.getString("standardRoot.startInvalidMain", docBaseStr));
    }
A {@link StandardRoot} that accepts any ZIP-based archive files.
tomcat10/src/main/java/com/linecorp/armeria/server/tomcat/ArmeriaWebResourceRoot.java