Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/BlockingHttpConnection.java @ 972:5ee36654b383
simplify AbstractHttpConnection
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 15 Oct 2016 22:42:05 -0600 |
parents | 866f2e801618 |
children | 4d9fe9cc554d |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/BlockingHttpConnection.java Fri Oct 14 13:06:06 2016 -0600 +++ b/src/org/eclipse/jetty/server/BlockingHttpConnection.java Sat Oct 15 22:42:05 2016 -0600 @@ -24,8 +24,8 @@ import org.eclipse.jetty.http.HttpException; import org.eclipse.jetty.http.HttpStatus; import org.eclipse.jetty.http.Parser; -import org.eclipse.jetty.io.Connection; import org.eclipse.jetty.io.EndPoint; +import org.eclipse.jetty.server.nio.BlockingChannelConnector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -33,24 +33,13 @@ /* ------------------------------------------------------------ */ /** Blocking Server HTTP Connection */ -public class BlockingHttpConnection extends AbstractHttpConnection +public final class BlockingHttpConnection extends AbstractHttpConnection { private static final Logger LOG = LoggerFactory.getLogger(BlockingHttpConnection.class); - public BlockingHttpConnection(Connector connector, EndPoint endpoint, Server server) - { - super(connector,endpoint,server); - } - - public BlockingHttpConnection(Connector connector, EndPoint endpoint, Server server, Parser parser, Generator generator, Request request) + public BlockingHttpConnection(BlockingChannelConnector connector, EndPoint endpoint) { - super(connector,endpoint,server,parser,generator,request); - } - - @Override - protected void handleRequest() throws IOException - { - super.handleRequest(); + super(connector,endpoint); } @Override