Example usage for org.apache.http.impl.client.cache SizeLimitedResponseReader SizeLimitedResponseReader

List of usage examples for org.apache.http.impl.client.cache SizeLimitedResponseReader SizeLimitedResponseReader

Introduction

In this page you can find the example usage for org.apache.http.impl.client.cache SizeLimitedResponseReader SizeLimitedResponseReader.

Prototype

public SizeLimitedResponseReader(ResourceFactory resourceFactory, long maxResponseSizeBytes,
        HttpRequest request, HttpResponse response) 

Source Link

Document

Create an HttpResponse that is limited in size, this allows for checking the size of objects that will be stored in the cache.

Usage

From source file:org.apache.http.impl.client.cache.BasicHttpCache.java

SizeLimitedResponseReader getResponseReader(HttpRequest request, HttpResponse backEndResponse) {
    return new SizeLimitedResponseReader(resourceFactory, maxObjectSizeBytes, request, backEndResponse);
}