Mercurial Hosting > luan
diff src/org/eclipse/jetty/http/AbstractGenerator.java @ 1034:563458c4dc93
remove HttpGenerator.reset()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 21:02:59 -0600 |
parents | 921c25a05eaa |
children | 898774c2cd87 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/AbstractGenerator.java Thu Nov 03 04:00:25 2016 -0600 +++ b/src/org/eclipse/jetty/http/AbstractGenerator.java Thu Nov 03 21:02:59 2016 -0600 @@ -108,23 +108,6 @@ return _endp.isOpen(); } - public void reset() - { - _state = STATE_HEADER; - _status = 0; - _version = HttpVersions.HTTP_1_1_ORDINAL; - _reason = null; - _last = false; - _head = false; - _noContent=false; - _persistent = null; - _contentWritten = 0; - _contentLength = HttpTokens.UNKNOWN_CONTENT; - - _content = null; - _method = null; - } - public final void returnBuffers() { if (_buffer!=null && _buffer.length()==0) @@ -144,7 +127,7 @@ throw new IllegalStateException("Flushed"); _last = false; - _persistent=null; + _persistent = null; _contentWritten = 0; _contentLength = HttpTokens.UNKNOWN_CONTENT; _content=null;