ClientHttpRequest that makes sure that headers
and body are not written multiple times.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final HttpHeaders | |
| private HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public final ClientHttpResponse | execute()
Implements org. Execute this request, resulting in a |
| protected abstract ClientHttpResponse | Returns: the response object for the executed requestthe HTTP headers headers)Abstract template method that writes the given headers and content to the HTTP request. |
| public final OutputStream | getBody()
Implements org. Return the body of the message as an output stream. |
| protected abstract OutputStream | Returns: the body output streamthe HTTP headers headers)Abstract template method that returns the body. |
| public final HttpHeaders | getHeaders()
Implements org. Return the headers of this message. |
| executed | back to summary |
|---|---|
| private boolean executed | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| readOnlyHeaders | back to summary |
|---|---|
| private HttpHeaders readOnlyHeaders
| |
| AbstractClientHttpRequest | back to summary |
|---|---|
| public AbstractClientHttpRequest() | |
| assertNotExecuted | back to summary |
|---|---|
| protected void assertNotExecuted() Assert that this request has not been executed yet.
| |
| execute | back to summary |
|---|---|
| public final ClientHttpResponse execute() throws IOException Implements org. Doc from org. Execute this request, resulting in a
| |
| executeInternal | back to summary |
|---|---|
| protected abstract ClientHttpResponse executeInternal(HttpHeaders headers) throws IOException Abstract template method that writes the given headers and content to the HTTP request.
| |
| getBody | back to summary |
|---|---|
| public final OutputStream getBody() throws IOException Implements org. Doc from org. Return the body of the message as an output stream.
| |
| getBodyInternal | back to summary |
|---|---|
| protected abstract OutputStream getBodyInternal(HttpHeaders headers) throws IOException Abstract template method that returns the body.
| |
| getHeaders | back to summary |
|---|---|
| public final HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |