package net.wessendorf.undertow;

import io.undertow.Undertow;
import io.undertow.server.handlers.resource.FileResourceManager;
import net.wessendorf.undertow.jaxrs.TestApplication;
import org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer;

import java.io.File;
import java.util.logging.Logger;

import static io.undertow.Handlers.resource;

/**
 * Hello world!
 *
 */
public class App {

    private static final Logger logger = Logger.getLogger(App.class.getName());

    public static void main( String[] args ) {

        UndertowJaxrsServer ut = new UndertowJaxrsServer();

        TestApplication ta = new TestApplication();

        ut.deploy(ta);

        ut.start(
                Undertow.builder()
                        .addHttpListener(8080, "localhost")

        );

        try {
            Thread.currentThread().join();
        }
        catch (InterruptedException e) {
            logger.info("shutting down");
            ut.stop();
        }
    }
}

@@ -60,73 +60,8 @@
 ow;%0A
-import io.undertow.server.handlers.resource.FileResourceManager;%0A
 impo
@@ -198,94 +198,27 @@
 ava.
-io.File;%0Aimport java.util.logging.Logger;%0A%0Aimport static io.undertow.Handlers.resource
+util.logging.Logger
 ;%0A%0A/

clean up