ClientHttpRequestFactory that buffers
all outgoing and incoming streams in memory.
Using this wrapper allows for multiple reads of the response body.
| Access | Constructor and Description |
|---|---|
| public | BufferingClientHttpRequestFactory(ClientHttpRequestFactory
the target request factory to wrap requestFactory)Create a buffering wrapper for the given |
| Modifier and Type | Method and Description |
|---|---|
| protected ClientHttpRequest | createRequest(URI
the URI to create a request for uri, HttpMethod the HTTP method to execute httpMethod, ClientHttpRequestFactory the wrapped request factory requestFactory)Implements abstract org. Create a new |
| protected boolean | Returns: true if the exchange should be buffered; false otherwisethe URI uri, HttpMethod the method httpMethod)Indicates whether the request/response exchange for the given URI and method should be buffered in memory. |
| BufferingClientHttpRequestFactory | back to summary |
|---|---|
| public BufferingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory) Create a buffering wrapper for the given
| |
| createRequest | back to summary |
|---|---|
| protected ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) throws IOException Implements abstract org. Doc from org. Create a new Called from
| |
| shouldBuffer | back to summary |
|---|---|
| protected boolean shouldBuffer(URI uri, HttpMethod httpMethod) Indicates whether the request/response exchange for the given URI and method should be buffered in memory. The default implementation returns
| |