Fixes #3178 - BufferingResponseListener does not clear buffer in onHeaders.

Updated javadocs to specify that the class is not reusable.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-02-08 13:35:40 +01:00
parent c9f73878c9
commit d575091c08
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ import org.eclipse.jetty.util.BufferUtil;
* specified to the constructors.</p> * specified to the constructors.</p>
* <p>The content may be retrieved from {@link #onSuccess(Response)} or {@link #onComplete(Result)} * <p>The content may be retrieved from {@link #onSuccess(Response)} or {@link #onComplete(Result)}
* via {@link #getContent()} or {@link #getContentAsString()}.</p> * via {@link #getContent()} or {@link #getContentAsString()}.</p>
* <p>Instances of this class are not reusable, so one must be allocated for each request.</p>
*/ */
public abstract class BufferingResponseListener extends Listener.Adapter public abstract class BufferingResponseListener extends Listener.Adapter
{ {