Class BufferingClientHttpRequestFactory

java.lang.Object
org.springframework.http.client.AbstractClientHttpRequestFactoryWrapper
org.springframework.http.client.BufferingClientHttpRequestFactory
All Implemented Interfaces:
ClientHttpRequestFactory

public class BufferingClientHttpRequestFactory extends AbstractClientHttpRequestFactoryWrapper
ClientHttpRequestFactory that wraps another in order to buffer outgoing and incoming content in memory, making it possible to set a content-length on the request, and to read the response body multiple times.

Note: as of 7.0, buffering can be enabled through RestClient.Builder.bufferContent(BiPredicate) and therefore it is not necessary for applications to use this class directly.

Since:
3.1
Author:
Arjen Poutsma, Rossen Stoyanchev