Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2014-10-09 18:11:07 -0400
committerJoakim Erdfelt2014-10-09 18:11:07 -0400
commit17aa2eaf7a6525a0ff691b58c141de2c656077aa (patch)
tree3ed0ca68b743b6e1f9dae120f89ef359953b3418 /jetty-server
parent67db9e67def541886496481b90d527c570e0e0fd (diff)
downloadorg.eclipse.jetty.project-17aa2eaf7a6525a0ff691b58c141de2c656077aa.tar.gz
org.eclipse.jetty.project-17aa2eaf7a6525a0ff691b58c141de2c656077aa.tar.xz
org.eclipse.jetty.project-17aa2eaf7a6525a0ff691b58c141de2c656077aa.zip
Adding note about weld requirement on .getServerInfo()
Diffstat (limited to 'jetty-server')
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java5
1 files changed, 5 insertions, 0 deletions
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 ed6efd1b65..2143d8dc7e 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();
}

Back to the top