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, getHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getURIAbstractBufferingAsyncClientHttpRequest()
protected java.io.OutputStream getBodyInternal(HttpHeaders headers) throws java.io.IOException
AbstractAsyncClientHttpRequestgetBodyInternal in class AbstractAsyncClientHttpRequestheaders - the HTTP headersjava.io.IOExceptionprotected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers) throws java.io.IOException
AbstractAsyncClientHttpRequestexecuteInternal in class AbstractAsyncClientHttpRequestheaders - the HTTP headersjava.io.IOExceptionprotected abstract ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
headers - the HTTP headersbufferedOutput - the body contentjava.io.IOException