public abstract class

AbstractBufferingClientHttpRequest

extends AbstractClientHttpRequest
java.lang.Object
   ↳ org.springframework.http.client.AbstractClientHttpRequest
     ↳ org.springframework.http.client.AbstractBufferingClientHttpRequest

Class Overview

Abstract base for ClientHttpRequest that buffers output in a byte array before sending it over the wire.

Summary

Public Constructors
AbstractBufferingClientHttpRequest()
Protected Methods
abstract ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput)
Abstract template method that writes the given headers and content to the HTTP request.
ClientHttpResponse executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.
OutputStream getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.
[Expand]
Inherited Methods
From class org.springframework.http.client.AbstractClientHttpRequest
From class java.lang.Object
From interface org.springframework.http.HttpMessage
From interface org.springframework.http.HttpOutputMessage
From interface org.springframework.http.HttpRequest
From interface org.springframework.http.client.ClientHttpRequest

Public Constructors

public AbstractBufferingClientHttpRequest ()

Protected Methods

protected abstract ClientHttpResponse executeInternal (HttpHeaders headers, byte[] bufferedOutput)

Abstract template method that writes the given headers and content to the HTTP request.

Parameters
headers the HTTP headers
bufferedOutput the body content
Returns
  • the response object for the executed request
Throws
IOException

protected ClientHttpResponse executeInternal (HttpHeaders headers)

Abstract template method that writes the given headers and content to the HTTP request.

Parameters
headers the HTTP headers
Returns
  • the response object for the executed request
Throws
IOException

protected OutputStream getBodyInternal (HttpHeaders headers)

Abstract template method that returns the body.

Parameters
headers the HTTP headers
Returns
  • the body output stream
Throws
IOException