import com.networknt.server.HandlerProvider;
import io.undertow.Handlers;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;


public class Example implements HandlerProvider {

    public HttpHandler getHandler() {
        return Handlers.path()
        .addPrefixPath("/rest/hello", new HttpHandler() {
                public void handleRequest(HttpServerExchange exchange) {
                    exchange.getResponseSender().send("Hello World");
            	}
            }
        );
    }
}
