tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [3/3] tomee git commit: impl ServletContext.getServerInfo
Date Mon, 29 Dec 2014 13:45:28 GMT
impl ServletContext.getServerInfo


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/cfbc8433
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/cfbc8433
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/cfbc8433

Branch: refs/heads/develop
Commit: cfbc843359ddf940f2a43ac880a03f175ef31638
Parents: bbd6bbe
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Mon Dec 29 14:42:14 2014 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Mon Dec 29 14:42:14 2014 +0100

----------------------------------------------------------------------
 .../apache/openejb/server/httpd/EmbeddedServletContext.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/cfbc8433/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EmbeddedServletContext.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EmbeddedServletContext.java
b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EmbeddedServletContext.java
index f8ac643..a4f2674 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EmbeddedServletContext.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/EmbeddedServletContext.java
@@ -16,6 +16,7 @@
  */
 package org.apache.openejb.server.httpd;
 
+import org.apache.openejb.util.OpenEjbVersion;
 import org.apache.webbeans.web.lifecycle.test.MockServletContext;
 
 import java.io.IOException;
@@ -103,6 +104,11 @@ public class EmbeddedServletContext extends MockServletContext {
         return Collections.enumeration(attributes.keySet());
     }
 
+    @Override
+    public String getServerInfo() {
+        return "OpenEJB/" + OpenEjbVersion.get().getVersion();
+    }
+
     public static interface ResourceProvider {
         URL getResource(String path);
     }


Mime
View raw message