use responsebuilder

This commit is contained in:
Jörg Prante 2023-07-18 11:52:15 +02:00
parent 3952de7e78
commit 07e6a16f11

View file

@ -55,7 +55,7 @@ public class HtmlTemplateResource implements HttpServerResource {
this.application = httpRouterContext.getAttributes().get(Application.class, "application");
Objects.requireNonNull(application);
this.negotiateLocale = application.getSettings().getAsBoolean("negotiateLocale", false);
this.responseBuilder = httpRouterContext.getAttributes().get(HttpResponseBuilder.class, "response");
this.responseBuilder = httpRouterContext.getAttributes().get(HttpResponseBuilder.class, "responsebuilder");
Objects.requireNonNull(responseBuilder);
Path root = templateResourceHandler.getRoot();
root = root != null ? root : application.getHome();