Mercurial Hosting > luan
comparison src/org/eclipse/jetty/http/AbstractGenerator.java @ 1035:898774c2cd87
remove HttpGenerator.returnBuffers()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 21:09:57 -0600 |
parents | 563458c4dc93 |
children | b87f97f6418a |
comparison
equal
deleted
inserted
replaced
1034:563458c4dc93 | 1035:898774c2cd87 |
---|---|
106 public final boolean isOpen() | 106 public final boolean isOpen() |
107 { | 107 { |
108 return _endp.isOpen(); | 108 return _endp.isOpen(); |
109 } | 109 } |
110 | 110 |
111 public final void returnBuffers() | |
112 { | |
113 if (_buffer!=null && _buffer.length()==0) | |
114 { | |
115 _buffer=null; | |
116 } | |
117 | |
118 if (_header!=null && _header.length()==0) | |
119 { | |
120 _header=null; | |
121 } | |
122 } | |
123 | |
124 public final void resetBuffer() | 111 public final void resetBuffer() |
125 { | 112 { |
126 if(_state>=STATE_FLUSHING) | 113 if(_state>=STATE_FLUSHING) |
127 throw new IllegalStateException("Flushed"); | 114 throw new IllegalStateException("Flushed"); |
128 | 115 |