use of com.networknt.openapi.OpenApiHandler in project light-rest-4j by networknt.
the class IntegrationTest method setUp.
@BeforeClass
public static void setUp() {
if (server == null) {
logger.info("starting server");
HttpHandler handler = setupRoutings();
OpenApiHandler openApiHandler = new OpenApiHandler();
openApiHandler.setNext(handler);
ParameterHandler parameterHandler = new ParameterHandler();
parameterHandler.setNext(openApiHandler);
handler = parameterHandler;
server = Undertow.builder().addHttpListener(7080, "localhost").setHandler(handler).build();
server.start();
}
}
Aggregations