use responsebuilder
This commit is contained in:
parent
3952de7e78
commit
07e6a16f11
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class HtmlTemplateResource implements HttpServerResource {
|
||||||
this.application = httpRouterContext.getAttributes().get(Application.class, "application");
|
this.application = httpRouterContext.getAttributes().get(Application.class, "application");
|
||||||
Objects.requireNonNull(application);
|
Objects.requireNonNull(application);
|
||||||
this.negotiateLocale = application.getSettings().getAsBoolean("negotiateLocale", false);
|
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);
|
Objects.requireNonNull(responseBuilder);
|
||||||
Path root = templateResourceHandler.getRoot();
|
Path root = templateResourceHandler.getRoot();
|
||||||
root = root != null ? root : application.getHome();
|
root = root != null ? root : application.getHome();
|
||||||
|
|
Loading…
Reference in a new issue