com.fastchar.server.undertow.HttpHandlerCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-server-undertow Show documentation
Show all versions of fastchar-server-undertow Show documentation
FastChar-Server-Undertow is server container for undertow.
package com.fastchar.server.undertow;
import io.undertow.server.HttpHandler;
import io.undertow.server.HttpServerExchange;
import java.util.ArrayList;
import java.util.List;
public class HttpHandlerCollection implements HttpHandler {
private List handlers = new ArrayList<>();
public HttpHandlerCollection(List handlers) {
this.handlers = handlers;
}
@Override
public void handleRequest(HttpServerExchange exchange) throws Exception {
for (HttpHandler handler : handlers) {
handler.handleRequest(exchange);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy