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

com.fastchar.server.undertow.HttpHandlerCollection Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
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