org.javawebstack.httpserver.handler.DefaultNotFoundHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-server Show documentation
Show all versions of http-server Show documentation
This library provides a routing and request mapping stack on top of the well known and industry proven eclipse jetty http server. It also supports websockets.
The newest version!
package org.javawebstack.httpserver.handler;
import org.javawebstack.httpserver.Exchange;
public class DefaultNotFoundHandler implements RequestHandler {
public Object handle(Exchange exchange) {
exchange.status(404);
return "Page not found!";
}
}