comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1007:945568ee77ac

remove HttpBuffersImpl
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 17:40:20 -0600
parents 0e96ce3db20a
children 2712133d5bce
comparison
equal deleted inserted replaced
1006:58a9c4a42292 1007:945568ee77ac
27 import javax.servlet.ServletOutputStream; 27 import javax.servlet.ServletOutputStream;
28 import javax.servlet.http.HttpServletRequest; 28 import javax.servlet.http.HttpServletRequest;
29 import javax.servlet.http.HttpServletResponse; 29 import javax.servlet.http.HttpServletResponse;
30 30
31 import org.eclipse.jetty.http.EncodedHttpURI; 31 import org.eclipse.jetty.http.EncodedHttpURI;
32 import org.eclipse.jetty.http.HttpBuffersImpl;
33 import org.eclipse.jetty.http.HttpException; 32 import org.eclipse.jetty.http.HttpException;
34 import org.eclipse.jetty.http.HttpFields; 33 import org.eclipse.jetty.http.HttpFields;
35 import org.eclipse.jetty.http.HttpGenerator; 34 import org.eclipse.jetty.http.HttpGenerator;
36 import org.eclipse.jetty.http.HttpHeaderValues; 35 import org.eclipse.jetty.http.HttpHeaderValues;
37 import org.eclipse.jetty.http.HttpHeaders; 36 import org.eclipse.jetty.http.HttpHeaders;
120 119
121 protected AbstractHttpConnection(Connector connector, EndPoint endpoint) 120 protected AbstractHttpConnection(Connector connector, EndPoint endpoint)
122 { 121 {
123 super(endpoint); 122 super(endpoint);
124 _connector = connector; 123 _connector = connector;
125 HttpBuffersImpl ab = _connector._buffers; 124 _parser = new HttpParser(_connector.getRequestBuffers(), endpoint, new RequestHandler());
126 _parser = new HttpParser(ab.getRequestBuffers(), endpoint, new RequestHandler());
127 _request = new Request(this); 125 _request = new Request(this);
128 _response = new Response(this); 126 _response = new Response(this);
129 _generator = new HttpGenerator(ab.getResponseBuffers(), endpoint); 127 _generator = new HttpGenerator(_connector.getResponseBuffers(), endpoint);
130 _server = connector.server; 128 _server = connector.server;
131 } 129 }
132 130
133 public final Connector getConnector() 131 public final Connector getConnector()
134 { 132 {