abstract class AbstractBufferingAsyncClientHttpRequest extends AbstractAsyncClientHttpRequest
AsyncClientHttpRequest
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 |
---|
AbstractBufferingAsyncClientHttpRequest() |
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers)
Abstract template method that writes the given headers and content to the HTTP request.
|
protected abstract ListenableFuture<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, executeAsync, getBody, getHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMethod, getURI
AbstractBufferingAsyncClientHttpRequest()
protected java.io.OutputStream getBodyInternal(HttpHeaders headers) throws java.io.IOException
AbstractAsyncClientHttpRequest
getBodyInternal
in class AbstractAsyncClientHttpRequest
headers
- the HTTP headersjava.io.IOException
protected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers) throws java.io.IOException
AbstractAsyncClientHttpRequest
executeInternal
in class AbstractAsyncClientHttpRequest
headers
- the HTTP headersjava.io.IOException
protected abstract ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
headers
- the HTTP headersbufferedOutput
- the body contentjava.io.IOException