diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java index 2836eac071b..6919121f812 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java @@ -1722,6 +1722,16 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu { return _aliasChecks; } + + /* ------------------------------------------------------------ */ + /** + * @param checks list of AliasCheck instances + */ + public void setAliasChecks(List checks) + { + _aliasChecks.clear(); + _aliasChecks.addAll(checks); + } /* ------------------------------------------------------------ */ /** diff --git a/tests/test-webapps/test-jetty-webapp/src/main/config/webapps.demo/test.xml b/tests/test-webapps/test-jetty-webapp/src/main/config/webapps.demo/test.xml index 423477a2d98..8cee715e541 100644 --- a/tests/test-webapps/test-jetty-webapp/src/main/config/webapps.demo/test.xml +++ b/tests/test-webapps/test-jetty-webapp/src/main/config/webapps.demo/test.xml @@ -29,6 +29,11 @@ detected. /etc/webdefault.xml /test.d/override-web.xml +