From 17aa2eaf7a6525a0ff691b58c141de2c656077aa Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 9 Oct 2014 15:11:07 -0700 Subject: [PATCH] Adding note about weld requirement on .getServerInfo() --- .../org/eclipse/jetty/server/handler/ContextHandler.java | 5 +++++ 1 file changed, 5 insertions(+) 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 ed6efd1b654..2143d8dc7ee 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 @@ -2446,6 +2446,11 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu @Override public String getServerInfo() { + // NOTE: DO NOT CHANGE + // this is used by weld to detect Jetty + // implementation version + // See: https://github.com/weld/core/blob/master/environments/servlet/core/src/main/java/org/jboss/weld/environment/jetty/JettyContainer.java + // and its touch(ContainerContext) method return "jetty/" + Server.getVersion(); }