@Deprecated final class SimpleStreamingAsyncClientHttpRequest extends AbstractAsyncClientHttpRequest
ClientHttpRequest
implementation that uses
standard Java facilities to execute streaming requests. Created via the SimpleClientHttpRequestFactory
.SimpleClientHttpRequestFactory.createRequest(java.net.URI, org.springframework.http.HttpMethod)
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
body
Deprecated.
|
private int |
chunkSize
Deprecated.
|
private java.net.HttpURLConnection |
connection
Deprecated.
|
private boolean |
outputStreaming
Deprecated.
|
private AsyncListenableTaskExecutor |
taskExecutor
Deprecated.
|
Constructor and Description |
---|
SimpleStreamingAsyncClientHttpRequest(java.net.HttpURLConnection connection,
int chunkSize,
boolean outputStreaming,
AsyncListenableTaskExecutor taskExecutor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers)
Deprecated.
Abstract template method that writes the given headers and content to the HTTP request.
|
protected java.io.OutputStream |
getBodyInternal(HttpHeaders headers)
Deprecated.
Abstract template method that returns the body.
|
java.lang.String |
getMethodValue()
Deprecated.
Return the HTTP method of the request as a String
|
java.net.URI |
getURI()
Deprecated.
Return the URI of the request.
|
assertNotExecuted, executeAsync, getBody, getHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMethod
private final java.net.HttpURLConnection connection
private final int chunkSize
@Nullable private java.io.OutputStream body
private final boolean outputStreaming
private final AsyncListenableTaskExecutor taskExecutor
SimpleStreamingAsyncClientHttpRequest(java.net.HttpURLConnection connection, int chunkSize, boolean outputStreaming, AsyncListenableTaskExecutor taskExecutor)
public java.lang.String getMethodValue()
HttpRequest
public java.net.URI getURI()
HttpRequest
null
)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