comparison src/org/eclipse/jetty/server/Server.java @ 975:53b3f7d9714c

simplify BlockingChannelConnector
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 01:10:02 -0600
parents 3191abe890ef
children af8742d31bca
comparison
equal deleted inserted replaced
974:7422ca1ae146 975:53b3f7d9714c
32 import javax.servlet.http.HttpServletRequest; 32 import javax.servlet.http.HttpServletRequest;
33 import javax.servlet.http.HttpServletResponse; 33 import javax.servlet.http.HttpServletResponse;
34 34
35 import org.eclipse.jetty.http.HttpURI; 35 import org.eclipse.jetty.http.HttpURI;
36 import org.eclipse.jetty.server.handler.HandlerWrapper; 36 import org.eclipse.jetty.server.handler.HandlerWrapper;
37 import org.eclipse.jetty.server.nio.BlockingChannelConnector;
37 import org.eclipse.jetty.server.nio.SelectChannelConnector; 38 import org.eclipse.jetty.server.nio.SelectChannelConnector;
38 import org.eclipse.jetty.util.Attributes; 39 import org.eclipse.jetty.util.Attributes;
39 import org.eclipse.jetty.util.AttributesMap; 40 import org.eclipse.jetty.util.AttributesMap;
40 import org.eclipse.jetty.util.LazyList; 41 import org.eclipse.jetty.util.LazyList;
41 import org.eclipse.jetty.util.MultiException; 42 import org.eclipse.jetty.util.MultiException;
71 } 72 }
72 73
73 public Server(int port) 74 public Server(int port)
74 { 75 {
75 setServer(this); 76 setServer(this);
76 new SelectChannelConnector(this,port); 77 // new SelectChannelConnector(this,port);
78 new BlockingChannelConnector(this,port);
77 } 79 }
78 80
79 @Override 81 @Override
80 protected void doStart() throws Exception 82 protected void doStart() throws Exception
81 { 83 {