Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/nio/AbstractNIOConnector.java @ 887:df84a1741687
make Connector reference to server explicit
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 04 Oct 2016 23:59:56 -0600 |
parents | 150092cebf3e |
children |
comparison
equal
deleted
inserted
replaced
886:0d876a03ab0b | 887:df84a1741687 |
---|---|
21 */ | 21 */ |
22 package org.eclipse.jetty.server.nio; | 22 package org.eclipse.jetty.server.nio; |
23 | 23 |
24 import org.eclipse.jetty.io.Buffers.Type; | 24 import org.eclipse.jetty.io.Buffers.Type; |
25 import org.eclipse.jetty.server.Connector; | 25 import org.eclipse.jetty.server.Connector; |
26 import org.eclipse.jetty.server.Server; | |
26 | 27 |
27 public abstract class AbstractNIOConnector extends Connector implements NIOConnector | 28 public abstract class AbstractNIOConnector extends Connector implements NIOConnector |
28 { | 29 { |
29 public AbstractNIOConnector() | 30 public AbstractNIOConnector(Server server,int port) |
30 { | 31 { |
32 super(server,port); | |
31 _buffers.setRequestBufferType(Type.DIRECT); | 33 _buffers.setRequestBufferType(Type.DIRECT); |
32 _buffers.setRequestHeaderType(Type.INDIRECT); | 34 _buffers.setRequestHeaderType(Type.INDIRECT); |
33 _buffers.setResponseBufferType(Type.DIRECT); | 35 _buffers.setResponseBufferType(Type.DIRECT); |
34 _buffers.setResponseHeaderType(Type.INDIRECT); | 36 _buffers.setResponseHeaderType(Type.INDIRECT); |
35 } | 37 } |