ClientHttpRequest implementation that uses standard JDK facilities to
execute streaming requests. Created via the SimpleClientHttpRequestFactory.
SimpleClientHttpRequestFactory#createRequest(URI, HttpMethod)
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final HttpURLConnection |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | addHeaders(HttpURLConnection
the connection to add the headers to connection, HttpHeaders the headers to add headers)Add the given headers to the given HTTP connection. |
| protected ClientHttpResponse | executeInternal(HttpHeaders
the HTTP headers headers, StreamingHttpOutputMessage.the HTTP body, may be bodynull if no body was setImplements abstract org. |
| public HttpMethod | getMethod()
Implements org. |
| public URI | getURI()
Implements org. |
| chunkSize | back to summary |
|---|---|
| private final int chunkSize | |
| connection | back to summary |
|---|---|
| private final HttpURLConnection connection | |
| SimpleClientHttpRequest | back to summary |
|---|---|
| pack-priv SimpleClientHttpRequest(HttpURLConnection connection, int chunkSize) | |
| addHeaders | back to summary |
|---|---|
| pack-priv static void addHeaders(HttpURLConnection connection, HttpHeaders headers) Add the given headers to the given HTTP connection.
| |
| executeInternal | back to summary |
|---|---|
| protected ClientHttpResponse executeInternal(HttpHeaders headers, StreamingHttpOutputMessage. Implements abstract org. Doc from org. Abstract template method that writes the given headers and content to the HTTP request.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). | |