Added constructor to specify the max length.

This commit is contained in:
Simone Bordet 2012-11-20 15:44:46 +01:00
parent 67d50419f9
commit 7771b6e27b
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ public class BlockingResponseListener extends BufferingResponseListener implemen
public BlockingResponseListener(Request request)
{
this(request, 2 * 1024 * 1024);
}
public BlockingResponseListener(Request request, int maxLength)
{
super(maxLength);
this.request = request;
}