Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/Connector.java @ 1047:1accf965d51a
remove other Buffer implementations
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 22:51:09 -0700 |
parents | a8c92b0a08ed |
children | 2b769da7f67d |
comparison
equal
deleted
inserted
replaced
1046:a8c92b0a08ed | 1047:1accf965d51a |
---|---|
31 import org.eclipse.jetty.io.Buffer; | 31 import org.eclipse.jetty.io.Buffer; |
32 import org.eclipse.jetty.io.Buffers; | 32 import org.eclipse.jetty.io.Buffers; |
33 import org.eclipse.jetty.io.BufferUtil; | 33 import org.eclipse.jetty.io.BufferUtil; |
34 import org.eclipse.jetty.io.EndPoint; | 34 import org.eclipse.jetty.io.EndPoint; |
35 import org.eclipse.jetty.io.EofException; | 35 import org.eclipse.jetty.io.EofException; |
36 import org.eclipse.jetty.io.nio.DirectNIOBuffer; | |
37 import org.eclipse.jetty.io.nio.IndirectNIOBuffer; | |
38 import org.eclipse.jetty.util.component.AggregateLifeCycle; | 36 import org.eclipse.jetty.util.component.AggregateLifeCycle; |
39 import org.eclipse.jetty.util.component.Dumpable; | 37 import org.eclipse.jetty.util.component.Dumpable; |
40 import org.slf4j.Logger; | 38 import org.slf4j.Logger; |
41 import org.slf4j.LoggerFactory; | 39 import org.slf4j.LoggerFactory; |
42 | 40 |
252 | 250 |
253 | 251 |
254 // my own buffers | 252 // my own buffers |
255 | 253 |
256 protected Buffer newBuffer(int size) { | 254 protected Buffer newBuffer(int size) { |
257 // return new DirectNIOBuffer(size); | |
258 return BufferUtil.newDirectBuffer(size); | 255 return BufferUtil.newDirectBuffer(size); |
259 } | 256 } |
260 | 257 |
261 private class MyBuffers implements Buffers { | 258 private class MyBuffers implements Buffers { |
262 private final int headerSize; | 259 private final int headerSize; |
267 this.bufferSize = bufferSize; | 264 this.bufferSize = bufferSize; |
268 } | 265 } |
269 | 266 |
270 @Override | 267 @Override |
271 public Buffer getHeader() { | 268 public Buffer getHeader() { |
272 // return new IndirectNIOBuffer(headerSize); | |
273 return BufferUtil.newBuffer(headerSize); | 269 return BufferUtil.newBuffer(headerSize); |
274 } | 270 } |
275 | 271 |
276 @Override | 272 @Override |
277 public Buffer getBuffer() { | 273 public Buffer getBuffer() { |