com.networknt.eventuate.cdcservice.CdcService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventuate-cdcserver Show documentation
Show all versions of eventuate-cdcserver Show documentation
A micro service server component of change data capture.
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!");
}
}
);
}
}