comparison src/org/eclipse/jetty/server/Server.java @ 884:cb78ee27b0e0

remove Server.getVersion()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 16:30:02 -0600
parents 8c494fcd3d34
children 0d876a03ab0b
comparison
equal deleted inserted replaced
883:8c494fcd3d34 884:cb78ee27b0e0
28 28
29 import javax.servlet.ServletException; 29 import javax.servlet.ServletException;
30 import javax.servlet.http.HttpServletRequest; 30 import javax.servlet.http.HttpServletRequest;
31 import javax.servlet.http.HttpServletResponse; 31 import javax.servlet.http.HttpServletResponse;
32 32
33 import org.eclipse.jetty.http.HttpGenerator;
34 import org.eclipse.jetty.http.HttpURI; 33 import org.eclipse.jetty.http.HttpURI;
35 import org.eclipse.jetty.server.handler.HandlerWrapper; 34 import org.eclipse.jetty.server.handler.HandlerWrapper;
36 import org.eclipse.jetty.server.nio.SelectChannelConnector; 35 import org.eclipse.jetty.server.nio.SelectChannelConnector;
37 import org.eclipse.jetty.util.Attributes; 36 import org.eclipse.jetty.util.Attributes;
38 import org.eclipse.jetty.util.AttributesMap; 37 import org.eclipse.jetty.util.AttributesMap;
56 */ 55 */
57 public class Server extends HandlerWrapper implements Attributes 56 public class Server extends HandlerWrapper implements Attributes
58 { 57 {
59 private static final Logger LOG = LoggerFactory.getLogger(Server.class); 58 private static final Logger LOG = LoggerFactory.getLogger(Server.class);
60 59
61 private static final String __version = "8"; 60 public static final String version = "8";
62 61
63 private final AttributesMap _attributes = new AttributesMap(); 62 private final AttributesMap _attributes = new AttributesMap();
64 public final ThreadPoolExecutor threadPool; 63 public final ThreadPoolExecutor threadPool;
65 public final Connector connector; 64 public final Connector connector;
66 65
80 threadPool = new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()); 79 threadPool = new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
81 } 80 }
82 81
83 82
84 /* ------------------------------------------------------------ */ 83 /* ------------------------------------------------------------ */
85 public static String getVersion()
86 {
87 return __version;
88 }
89
90
91 /* ------------------------------------------------------------ */
92 @Override 84 @Override
93 protected void doStart() throws Exception 85 protected void doStart() throws Exception
94 { 86 {
95 LOG.info("jetty-"+__version); 87 LOG.info("jetty-"+version);
96 HttpGenerator.setServerVersion(__version);
97 88
98 MultiException mex=new MultiException(); 89 MultiException mex=new MultiException();
99 90
100 try 91 try
101 { 92 {
306 297
307 298
308 /* ------------------------------------------------------------ */ 299 /* ------------------------------------------------------------ */
309 public static void main(String...args) throws Exception 300 public static void main(String...args) throws Exception
310 { 301 {
311 System.err.println(getVersion()); 302 System.err.println(version);
312 } 303 }
313 } 304 }