@@ -0,0 +1,721 @@
+package io.undertow.examples.fileserving;%0A%0Aimport io.undertow.Undertow;%0Aimport io.undertow.examples.UndertowExample;%0Aimport io.undertow.server.handlers.resource.FileResourceManager;%0A%0Aimport java.io.File;%0A%0Aimport static io.undertow.Handlers.resource;%0A%0A/**%0A * @author Stuart Douglas%0A */%0A@UndertowExample(%22File Serving%22)%0Apublic class FileServer %7B%0A%0A    public static void main(final String%5B%5D args) %7B%0A        Undertow server = Undertow.builder()%0A                .addHttpListener(8080, %22localhost%22)%0A                .setHandler(resource(new FileResourceManager(new File(System.getProperty(%22user.home%22)), 100))%0A                        .setDirectoryListingEnabled(true))%0A                .build();%0A        server.start();%0A    %7D%0A%0A%7D%0A

Add file serving example