All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.networknt.eventuate.cdcservice.CdcService Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package com.networknt.eventuate.cdcservice;

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

/**
 * CdcService handle
 */
public class CdcService implements HandlerProvider {

    public HttpHandler getHandler() {
        return Handlers.path()
                .addPrefixPath("/", new HttpHandler() {
                            public void handleRequest(HttpServerExchange exchange) {
                                exchange.getResponseSender().send("OK!");
                            }
                        }
                );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy