final class SimpleBufferingClientHttpRequest extends AbstractBufferingClientHttpRequest
ClientHttpRequest
implementation that uses standard J2SE facilities to execute buffered requests.
Created via the SimpleClientHttpRequestFactory
.SimpleClientHttpRequestFactory.createRequest(java.net.URI, HttpMethod)
Modifier and Type | Field and Description |
---|---|
private java.net.HttpURLConnection |
connection |
private boolean |
outputStreaming |
Constructor and Description |
---|
SimpleBufferingClientHttpRequest(java.net.HttpURLConnection connection,
boolean outputStreaming) |
Modifier and Type | Method and Description |
---|---|
protected ClientHttpResponse |
executeInternal(HttpHeaders headers,
byte[] bufferedOutput)
Abstract template method that writes the given headers and content to the HTTP request.
|
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
java.net.URI |
getURI()
Return the URI of the request.
|
executeInternal, getBodyInternal
execute, getBody, getCookies, getHeaders
private final java.net.HttpURLConnection connection
private final boolean outputStreaming
SimpleBufferingClientHttpRequest(java.net.HttpURLConnection connection, boolean outputStreaming)
public HttpMethod getMethod()
HttpRequest
public java.net.URI getURI()
HttpRequest
protected ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
AbstractBufferingClientHttpRequest
executeInternal
in class AbstractBufferingClientHttpRequest
headers
- the HTTP headersbufferedOutput
- the body contentjava.io.IOException