comparison src/org/eclipse/jetty/http/HttpParser.java @ 1005:0e96ce3db20a

remove HttpBuffers
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 02:42:05 -0600
parents 35d04ac3fd0b
children 8c13b9224cff
comparison
equal deleted inserted replaced
1004:3fa54d9d19cd 1005:0e96ce3db20a
65 private final EndPoint _endp; 65 private final EndPoint _endp;
66 private Buffer _header; // Buffer for header data (and small _content) 66 private Buffer _header; // Buffer for header data (and small _content)
67 private Buffer _body; // Buffer for large content 67 private Buffer _body; // Buffer for large content
68 private Buffer _buffer; // The current buffer in use (either _header or _content) 68 private Buffer _buffer; // The current buffer in use (either _header or _content)
69 private CachedBuffer _cached; 69 private CachedBuffer _cached;
70 private final View.CaseInsensitive _tok0; // Saved token: header name, request method or response version 70 private final View.CaseInsensitive _tok0 = new View.CaseInsensitive(); // Saved token: header name, request method or response version
71 private final View.CaseInsensitive _tok1; // Saved token: header value, request URI or response code 71 private final View.CaseInsensitive _tok1 = new View.CaseInsensitive(); // Saved token: header value, request URI or response code
72 private String _multiLineValue; 72 private String _multiLineValue;
73 private int _responseStatus; // If >0 then we are parsing a response 73 private int _responseStatus; // If >0 then we are parsing a response
74 private boolean _persistent; 74 private boolean _persistent;
75 75
76 protected final View _contentView = new View(); // View of the content in the buffer for {@link Input} 76 protected final View _contentView = new View(); // View of the content in the buffer for {@link Input}
86 public HttpParser(Buffers buffers, EndPoint endp, EventHandler handler) 86 public HttpParser(Buffers buffers, EndPoint endp, EventHandler handler)
87 { 87 {
88 _buffers = buffers; 88 _buffers = buffers;
89 _endp = endp; 89 _endp = endp;
90 _handler = handler; 90 _handler = handler;
91 _tok0 = new View.CaseInsensitive();
92 _tok1 = new View.CaseInsensitive();
93 } 91 }
94 92
95 public long getContentLength() 93 public long getContentLength()
96 { 94 {
97 return _contentLength; 95 return _contentLength;