view src/luan/modules/http/NotFound.java @ 1256:c147e2e877e3

allow subclassing of HttpServicer
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Sep 2018 20:15:16 -0600
parents 794ddcfbee20
children 643cf1c37723
line wrap: on
line source

package luan.modules.http;

import luan.webserver.Request;
import luan.webserver.Response;
import luan.webserver.Handler;


public class NotFound implements Handler {
	private final LuanHandler luanHandler;

	public NotFound(LuanHandler luanHandler) {
		this.luanHandler = luanHandler;
	}

	@Override public Response handle(Request request) {
		return luanHandler.handle(request,"site:/not_found.luan");
	}

}