abstract class AbstractBufferingClientHttpRequest extends AbstractClientHttpRequest
ClientHttpRequest that buffers output
in a byte array before sending it over the wire.| Modifier and Type | Field and Description |
|---|---|
private java.io.ByteArrayOutputStream |
bufferedOutput |
| Constructor and Description |
|---|
AbstractBufferingClientHttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
protected ClientHttpResponse |
executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.
|
protected abstract ClientHttpResponse |
executeInternal(HttpHeaders headers,
byte[] bufferedOutput)
Abstract template method that writes the given headers and content to the HTTP request.
|
protected java.io.OutputStream |
getBodyInternal(HttpHeaders headers)
Abstract template method that returns the body.
|
assertNotExecuted, execute, getBody, getHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getURIprotected java.io.OutputStream getBodyInternal(HttpHeaders headers) throws java.io.IOException
AbstractClientHttpRequestgetBodyInternal in class AbstractClientHttpRequestheaders - the HTTP headersjava.io.IOExceptionprotected ClientHttpResponse executeInternal(HttpHeaders headers) throws java.io.IOException
AbstractClientHttpRequestexecuteInternal in class AbstractClientHttpRequestheaders - the HTTP headersjava.io.IOExceptionprotected abstract ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
headers - the HTTP headersbufferedOutput - the body contentjava.io.IOException