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

dev.mccue.jdk.httpserver.regexrouter.NotFoundHandler Maven / Gradle / Ivy

The newest version!
package dev.mccue.jdk.httpserver.regexrouter;

import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;

import java.io.IOException;

final class NotFoundHandler implements HttpHandler {
    @Override
    public void handle(HttpExchange exchange) throws IOException {
        exchange.sendResponseHeaders(404, -1);
        exchange.close();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy